my gdt won't work

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
matias_beretta
Member
Member
Posts: 101
Joined: Mon Feb 26, 2007 3:39 pm

my gdt won't work

Post 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
Matías Beretta
cyr1x
Member
Member
Posts: 207
Joined: Tue Aug 21, 2007 1:41 am
Location: Germany

Re: my gdt won't work

Post 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.
Post Reply