Bits | Function | Description |
0-15 | Limit 0:15 | First 16 bits in the segment limiter |
16-31 | Base 0:15 | First 16 bits in the base address |
Bits | Function | Description |
0-7 | Base 16:23 | Bits 16-23 in the base address |
8-12 | Type | Segment type and attributes |
13-14 | Privilege Level | 0 = Highest privilege (OS), 3 = Lowest privilege (User applications) |
15 | Present flag | Set to 1 if segment is present |
16-19 | Limit 16:19 | Bits 16-19 in the segment limiter |
20-22 | Attributes | Different attributes, depending on the segment type |
23 | Granularity | Used together with the limiter, to determine the size of the segment |
24-31 | Base 24:31 | The last 24-31 bits in the base address |
Bits | Function | Description |
0-15 | Limit | Size of GDT in bytes |
16-47 | Address | GDT's memory address |
Linear address range (hex) | Memory type | Use |
0 - 3FF | RAM | Real mode, IVT (Interrupt Vector Table) |
400 - 4FF | RAM | BDA (BIOS data area) |
500 - 9FFFF | RAM | Free memory, 7C00 used for boot sector |
A0000 - BFFFF | Video RAM | Video memory |
C0000 - C7FFF | Video ROM | Video BIOS |
C8000 - EFFFF | ? | BIOS shadow area |
F0000 - FFFFF | ROM | System BIOS |
Move back to tutorial 1 | Move on to tutorial 3 |