Anonymous user
GDT Tutorial: Difference between revisions
m
→Reload segment registers
[unchecked revision] | [unchecked revision] |
Line 167:
<source lang="asm">
reloadSegments:
; Reload CS register containing code selector:▼
JMP 0x08:reload_CS ; 0x08 points at the new code selector▼
.reload_CS:▼
; Reload data segment registers:
MOV AX, 0x10 ; 0x10 points at the new data selector
Line 177 ⟶ 174:
MOV GS, AX
MOV SS, AX
▲.reload_CS:
▲ ; Reload CS register containing code selector:
▲ JMP 0x08:reload_CS ; 0x08 points at the new code selector
RET
</source>
|