1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-20 18:31:55 +00:00
kickc/src/test/ref/overlap-allocation-2.asm

36 lines
372 B
NASM

.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.label SCREEN = $400
jsr main
main: {
ldx #0
b1:
jsr line
inx
cpx #9
bne b1
ldx #$a
b2:
jsr line
inx
cpx #$13
bne b2
rts
}
line: {
txa
jsr plot
txa
clc
adc #$14
jsr plot
rts
}
plot: {
tay
lda #'*'
sta SCREEN,y
rts
}