18 lines
189 B
Z80 Assembly
18 lines
189 B
Z80 Assembly
org $4000
|
|
|
|
txt_output: equ $bb5a
|
|
|
|
push hl
|
|
ld hl,world
|
|
|
|
print: ld a,(hl)
|
|
cp 0
|
|
jr z,end
|
|
call txt_output
|
|
inc hl
|
|
jr print
|
|
|
|
end: pop hl
|
|
ret
|
|
|
|
world: defm "Hello world!\r\n\0"
|