17 lines
203 B
NASM
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
|