test-msx/hello.asm

27 lines
400 B
NASM
Raw Normal View History

2021-05-10 17:33:25 +02:00
org &4000
db "AB"
dw Start
db 00,00,00,00,00,00
Start:
call &006F
ld a, 32
ld (&F3B0), a
ld hl, Message
call PrintString
di
halt
PrintString:
ld a, (hl)
cp 255
ret z
inc hl
call &00A2
jr PrintString
Message: db 'Hello World!', 255
org &C000