langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
18
Task/Hello-world-Text/Z80-Assembly/hello-world-text.z80
Normal file
18
Task/Hello-world-Text/Z80-Assembly/hello-world-text.z80
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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 "Goodbye, World!\r\n\0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue