mirror of
https://github.com/irmen/prog8.git
synced 2024-12-02 07:49:27 +00:00
30 lines
312 B
NASM
30 lines
312 B
NASM
|
|
* = $8000
|
|
|
|
sec
|
|
lda #$a0
|
|
sta $2000
|
|
ldx $2000
|
|
txa
|
|
tay
|
|
iny
|
|
sty $2001
|
|
ldy #0
|
|
loop lda text,y
|
|
beq end
|
|
sta $d000
|
|
inc $d001
|
|
iny
|
|
jmp loop
|
|
end nop
|
|
bvs loop
|
|
|
|
.byte $02 ; invalid opcode
|
|
.byte $02 ; invalid opcode
|
|
.byte $02 ; invalid opcode
|
|
|
|
|
|
text .enc "screen"
|
|
.text "hello!",0
|
|
.enc "none"
|