Page 1 of 1

my gdt won't work

Posted: Wed Dec 12, 2007 8:49 am
by matias_beretta
Can anyone tell me what's wrong with my GDT?

gdt: dw 0x0000, 0x0000, 0x0000, 0x0000
sys_code: dw 0FFh, 0FFh, 0h, 0h, 0h, 10011000b, 01001111b, 0h
sys_data: db 0FFh, 0FFh, 0h, 0h, 0h, 10010010b, 01001111b, 0h
gdt_end:

I'm sure the problem is the gdt because i used another one and worked correctly, but when i use the mine crashes.

I'm using Virtual PC 2007 as emulator

Thanks

Re: my gdt won't work

Posted: Wed Dec 12, 2007 9:10 am
by cyr1x
matias_beretta wrote: sys_code: dw 0FFh, 0FFh, 0h, 0h, 0h, 10011000b, 01001111b, 0h
I think there should be a db instead of a dw.