Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cli ; No more interrupts
- lgdt [cs:GDTR] ; Load GDT register
- mov eax, cr0
- or al, 0x01 ; Set protected mode bit
- mov cr0, eax
- jmp 8:0x8060
- mov ecx, ss ; Get stack segment
- shl ecx, 4 ; Convert to absolute value
- add ebp, ecx ; BP becomes EBP
- add esp, ecx ; SP becomes ESP
- ; Initialize segments to point to data area
- mov eax, 16
- mov es, ax
- mov ds, ax
- mov ss, ax
- mov fs, ax
- mov gs, ax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement