1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-10-21 02:24:34 +00:00
kickc/src/test/ref/function-as-array.asm

15 lines
223 B
NASM
Raw Normal View History

// 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