After reading CR0 and checking status of PE bit, I tried reading GDTR IDTR and LDTR.
The code attached is working fine for this task.
I want to access the contents of GD Table, LD Table and ID Table by using the base address field of respective registers.
How to read the same? Please help.