18 lines
171 B
NASM
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
|