P2 SPIN orgh
pic18f2550
Posts: 400
in Propeller 2
Hello,
can it be that orgh instructions are ignored as long as the spin is used?
Comments
Not completely ignored (they do make the code be compiled for HUB execution). But I suspect the addresses may not be accepted. I'm surprised that PropTool doesn't give an error or warning about this. FlexSpin does ("warning: orgh with explicit origin does not work if Spin methods are present").
I first had to look at the hex code to realise that something was wrong.
Let's see what other alternatives I have.
Probably only one variable if free memory in the hram has to be dynamically defined.
I think the FlexProp loader has an option to load extra binary data to arbitrary locations in HUB RAM.
Okay, I'll have to look into that.