rdos/com/hello.asm
2019-10-18 14:43:28 +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