prog8/examples/cx16/banking/library2.asm

27 lines
317 B
NASM
Raw Normal View History

2024-11-03 20:52:04 +00:00
.cpu 'w65c02'
.enc 'none'
* = $a000
CHROUT = $ffd2
message_pointer = $02
routine1:
lda #<message
sta message_pointer
lda #>message
sta message_pointer+1
ldy #0
- lda (message_pointer),y
beq +
jsr CHROUT
iny
bne -
+ lda #<44444
ldy #>44444
rts
message:
.text "hello from routine 2",13,0