mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-09-08 17:54:40 +00:00
18 lines
240 B
NASM
18 lines
240 B
NASM
// Tests that for()-loops can have empty inits
|
|
.pc = $801 "Basic"
|
|
:BasicUpstart(main)
|
|
.pc = $80d "Program"
|
|
main: {
|
|
.label SCREEN = $400
|
|
ldx #0
|
|
b1:
|
|
cpx #$a
|
|
bcc b2
|
|
rts
|
|
b2:
|
|
txa
|
|
sta SCREEN,x
|
|
inx
|
|
jmp b1
|
|
}
|