1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-22 14:33:51 +00:00
8bitworkshop/presets/zx/hello.asm

21 lines
532 B
NASM
Raw Normal View History

2020-07-02 17:33:22 +00:00
CHAN_OPEN equ 5633
PRINT equ 8252
org 0x5ccb
loop
ld a, 2 ; 3E 02
call CHAN_OPEN ; CD 01 16
ld de, text ; 11 0E 7F
ld bc, textend-text ; 01 0E 00
call PRINT ; C3 3C 20
jmp loop
text defb 'Hello, World!' ; 48 65 6C 6C 6F 2C 20 57
; 6F 72 6C 64 21
defb 13 ; 0D
textend
org 0xff57
defb 00h