RosettaCodeData/Task/Hello-world-Text/Z80-Assembly/hello-world-text.z80
2015-11-18 06:14:39 +00:00

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"