rdos/programs/hello.asm

18 lines
161 B
NASM
Raw Normal View History

org 0x0100
main:
mov si, hello
.loop:
lodsb
test al, al
jz .ret
mov dl, al
mov ah, 0x02
int 0x21
jmp .loop
.ret:
ret
hello:
db "Hello!", 0