rdos/programs/hello.asm

18 lines
171 B
NASM
Raw Normal View History

org 0x0100
main:
mov si, hello
.loop:
lodsb
test al, al
jz .ret
mov dl, al
2019-09-28 22:38:35 +02:00
mov cl, 0x02
call 5
jmp .loop
.ret:
ret
hello:
2019-09-28 22:38:35 +02:00
db "Hello!", 0x0A, 0x0D, 0