mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-10-21 02:24:34 +00:00
15 lines
223 B
NASM
15 lines
223 B
NASM
// Tests treating a function like an array
|
|
// Should produce an error
|
|
.pc = $801 "Basic"
|
|
:BasicUpstart(main)
|
|
.pc = $80d "Program"
|
|
main: {
|
|
jsr new_ball
|
|
rts
|
|
}
|
|
new_ball: {
|
|
inc BALLS
|
|
rts
|
|
}
|
|
BALLS: .fill $10, 0
|