shadeos/learning/old_src/16bit/boot.asm

28 lines
285 B
NASM
Raw Normal View History

[org 0x7c00]
mov bx, HELLO
call print
call print_nl
mov bx, GOODBYE
call print
call print_nl
mov dx, 0x12fe
call print_hex
jmp $
%include "print.asm"
%include "print_hex.asm"
; data
HELLO:
db 'Hello, world!', 0
GOODBYE:
db 'Bye bye!', 0
times 510-($-$$) db 0
dw 0xaa55