Shop OBEX P1 Docs P2 Docs Learn Events
ERROR Origin Exceeds $1F0 limit - what does this mean? — Parallax Forums

ERROR Origin Exceeds $1F0 limit - what does this mean?

Chris_DChris_D Posts: 305
edited 2011-02-03 02:41 in Propeller 1
Hi everyone,

I just did a bunch of editing to my program and now when I compile it I get the following error

ERROR Origin Exceeds $1F0 limit

This pops up on a line where I declare a variable with the RES statement...

DY Res 1

Which is in the middle of a several more Res statements.

What is this error and what should I look for to fix the problem?

Thanks
Chris

Comments

  • MagIO2MagIO2 Posts: 2,243
    edited 2011-02-02 14:50
    So far I did not face this problem.

    But it looks like you exceeded the boundaries of PASM. As you know you only have a limited amount of COG-RAM. The variable reserved with the RES statement simply popped out of the usable COG-RAM. The last 16 registers of COG-RAM are already reserved by the special function registers.
  • Mike GreenMike Green Posts: 23,101
    edited 2011-02-02 14:59
    The assembler keeps a program counter which can be reset with the ORG statement. When this counter reaches $1F0 and you try to assemble something there, you get this error message. Essentially, your cog program is too big for the available cog memory.
  • Chris_DChris_D Posts: 305
    edited 2011-02-02 15:09
    Thanks much guys, I was afraid that was what the problem is. Looks like I have to figure out another way to "Skin this cat".

    Thanks again!

    Chris
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-02-02 16:22
    One way I have used is to re-use the initialisation portion of pasm as variables once that particular instruction has executed.
  • Chris_DChris_D Posts: 305
    edited 2011-02-03 02:41
    Cluso99,

    I never thought about that angle. I do have a number of variables being setup at the start of the code. Once that step is done, I don't need that code. I don't know if that would free up enough space buy I will have to look into that.


    Thanks

    Chris
Sign In or Register to comment.