Relocation Question
Posted: Tue Sep 16, 2003 11:25 am
I've written the code describing the different descriptors for the GDT and IDT, the individual selectors are identified using the EQU directive as shown below
VIDEOSEL EQU $ - gdt_start
before loading the GDT however I relocate this table to some other address say 0x0:0x700
Now look at this code fragment
MOV eax,VIDEOSEL
MOV gs,eax
MOV [gs:0x0],'P'
This works fine but i wanted to know if the VIDEOSEL will be pointing to the address before it was relocated or the one after(i.e with the 0x0:0x700 address).
Please let me know and thanx for your time.
VIDEOSEL EQU $ - gdt_start
before loading the GDT however I relocate this table to some other address say 0x0:0x700
Now look at this code fragment
MOV eax,VIDEOSEL
MOV gs,eax
MOV [gs:0x0],'P'
This works fine but i wanted to know if the VIDEOSEL will be pointing to the address before it was relocated or the one after(i.e with the 0x0:0x700 address).
Please let me know and thanx for your time.