os/asm/boot/main16.asm
2021-08-21 20:32:20 -05:00

21 lines
398 B
NASM

[bits 16]
%include "header.asm"
i_16bit_string: db 'Started 16-bit real mode.', 0
main16:
mov bp, 0x9000 ; move the stack out of the way of anything important
mov sp, bp
mov bx, i_16bit_string
call print16
call kernel16_load ; load the kernel
call switch16_to_32 ; never returns. Calls main32.
jmp g_infinite_loop
%include "main32.asm"
%include "bootable.asm"