os/asm/boot/main32.asm

12 lines
260 B
NASM
Raw Normal View History

2021-08-22 01:32:20 +00:00
[bits 32]
i_32bit_string: db 'Switched to 32-bit protected mode.', 0
main32:
mov ebx, i_32bit_string
call print32 ; print the 32-bit protected mode message
call i_kernel16_offset ; jump to the address of the loaded kernel
jmp g_infinite_loop ; hang