Mail Archives: djgpp/1994/01/17/09:25:27
> typedef struct {
> unsigned short int limit;
> unsigned long int base;
> } IDTR;
> typedef struct {
> unsigned short int limit;
> unsigned long int base;
> } GDTR;
> typedef struct {
> unsigned short int limit;
> unsigned long int base;
> } LDTR;
These structures are UNPACKED. They will not get the information
stored in them correctly, as there are four unused bytes between limit
and base to align the base to a 4 byte boundary.
Try writing into an unsigned char[6] instead.
- Raw text -