8608/examples/helloworld.asm
2024-02-20 19:08:35 -05:00

17 lines
203 B
NASM

.org $0100 ; Static data
hello_str:
"Hello world\0"
.org $0000 ; Program must start at $0000
ldp $0800 ; Char display
ldq hello_str
print:
lda *q++
jpz print_end
sta *p++
jmp print
print_end:
hlt