rdos/programs/hello.asm
2019-09-28 20:38:35 +00:00

18 lines
171 B
NASM

org 0x0100
main:
mov si, hello
.loop:
lodsb
test al, al
jz .ret
mov dl, al
mov cl, 0x02
call 5
jmp .loop
.ret:
ret
hello:
db "Hello!", 0x0A, 0x0D, 0