Shop OBEX P1 Docs P2 Docs Learn Events
P2 SPIN orgh — Parallax Forums

P2 SPIN orgh

Hello,
can it be that orgh instructions are ignored as long as the spin is used?

Comments

  • @pic18f2550 said:
    Hello,
    can it be that orgh instructions are ignored as long as the spin is used?

    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.

  • RaymanRayman Posts: 14,162

    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.

Sign In or Register to comment.