mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-20 02:32:36 +00:00
32 lines
343 B
NASM
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
|
|
}
|