Shop OBEX P1 Docs P2 Docs Learn Events
FlexProp: a complete programming system for P2 (and P1) - Page 63 — Parallax Forums

FlexProp: a complete programming system for P2 (and P1)

1575859606163»

Comments

  • ersmithersmith Posts: 6,283

    @"Christof Eb." said:
    Hi, question about the PR0...PR7 registers
    The SPIN docu says, that PR0 sits always (!) in cog register $1D8.
    Is this true for FlexProp also? It seems to compile to $1E0? Is this fixed?

    The address in FlexProp is fixed, but it is (unfortunately) different from the address in PNut. This is because PNut reserves $1E0-$1F0 for local variables to be passed to assembly. FlexProp doesn't need that, since local variables are (usually) kept in COG memory anyway, so to make more room in COG RAM the PR0 defines are moved up.

Sign In or Register to comment.