1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-20 02:32:36 +00:00
kickc/src/test/ref/overlap-allocation.asm

32 lines
343 B
NASM

.pc = $801 "Basic"
:BasicUpstart(main)
.pc = $80d "Program"
.label SCREEN = $400
jsr main
main: {
ldx #0
b1:
jsr plot
inx
cpx #$b
bne b1
ldx #0
b2:
jsr plot
inx
cpx #$b
bne b2
ldx #0
b3:
jsr plot
inx
cpx #$b
bne b3
rts
}
plot: {
lda #'*'
sta SCREEN,x
rts
}