mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-06-29 09:29:31 +00:00
16 lines
270 B
NASM
16 lines
270 B
NASM
// Tests treating a function like an array
|
|
// Should produce an error
|
|
// https://gitlab.com/camelot/kickc/issues/276
|
|
.pc = $801 "Basic"
|
|
:BasicUpstart(main)
|
|
.pc = $80d "Program"
|
|
main: {
|
|
jsr new_ball
|
|
rts
|
|
}
|
|
new_ball: {
|
|
inc BALLS
|
|
rts
|
|
}
|
|
BALLS: .fill $10, 0
|