22 lines
324 B
NASM
22 lines
324 B
NASM
|
; wait, WHAT? we have a bad DOS now????? This is absurd! You can't just add a SECOND project into the FIRST project.
|
||
|
|
||
|
[BITS 16]
|
||
|
[ORG 0x7E00]
|
||
|
|
||
|
start:
|
||
|
cli
|
||
|
xor ax, ax
|
||
|
mov ds, ax
|
||
|
mov es, ax
|
||
|
mov ss, ax
|
||
|
mov sp, 0x7C00
|
||
|
sti
|
||
|
|
||
|
call kernel_main
|
||
|
|
||
|
cli
|
||
|
hang:
|
||
|
hlt
|
||
|
jmp hang
|
||
|
|
||
|
times 512-($-$$) db 0
|