PNUT 35f Compiler Error
wummi
Posts: 32
in Propeller 2
I can not compile this small Spin2 Prog.
PUB go () | X { this is not working } if reg[fp] == #func 'Compiler Error: Expected an expression term. return { and this works } X := #func 'here i get no Compiler Error if reg[fp] == X 'and if ...... is working as expected return DAT org mov fp, #func call fp func ret fp long 0
Comments
I don’t see where you define the array ‘reg’
You don’t need to define reg in spin2.
reg[512] are default defined for all the cog registers.
I will look into this soon. It seems like it should work okay.