blob: 93afff7277050efba6e9f6c7ab61ff4b4231399d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
[BITS 32]
global _start
CODE_SEG equ 0x08
DATA_SEG equ 0x10
; No access to BIOS from now on....
_start:
; Set all segments to the same as the DATA_SEG
mov ax, DATA_SEG
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
; Set the stack pointer and base pointer further in mem
mov ebp, 0x00200000
mov esp, ebp
; Enable A20 line
in al, 0x92
or al, 2
out 0x92, al
jmp $
|