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