GDT Tutorial: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
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 174 ⟶ 177:
MOV GS, AX
MOV SS, AX
▲ ; Reload CS register containing code selector:
▲ JMP 0x08:reload_CS ; 0x08 points at the new code selector
▲.reload_CS:
RET
</source>
|