Just a quick question, for educational and self debugging purposes, I was wondering if it was possible to read entries from the Global Descriptor Table, for example:
GDT db 00,00
GDTaddr db 00,00,00,00
sgdt GDT
sub dword ptr[GDTaddr],18 ;2nd Entry
mov edi,dword ptr[GDTaddr]
mov esi,offset entry
mov ecx,8h ;entry is 8 bytes long
loopr:
lodsb
stosb
loop loopr
Program keeps stopin, i would assume ad lodsb, so I was wonderin if the address of the GDT was not readable.