os/asm/boot/main16.asm

21 lines
398 B
NASM
Raw Normal View History

2021-08-22 01:32:20 +00:00
[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"