Page 1 of 1

GDT selector question

Posted: Tue Dec 02, 2003 11:30 am
by Neo
i getting an error when i use this Selector as the stack segment with esp=0xffffc however using esp=fffc works.
What could be wrong? What i'm trying to do is use the area below 1Mb as a stack

Code: Select all

STACK_SEL   EQU      $-gdt
   dw   0xFFFF
   dw   0
   db   0
   db   0x92
   db   0x4F
   db   0

Re:GDT selector question

Posted: Tue Dec 02, 2003 11:37 am
by Therx
Memory between C0000 and FFFFF are ROM so can't be used.

Pete