Shop OBEX P1 Docs P2 Docs Learn Events
Address not in the lower half — Parallax Forums

Address not in the lower half

SamTheManSamTheMan Posts: 43
edited 2007-06-11 21:41 in General Discussion
I'm getting this error "address not in the lower half"
I changed all my (gosub) callings to Sub but I'm still getting it
is there is a limitation on using Sub(s)?



Post Edited (SamTheMan) : 6/11/2007 9:44:19 PM GMT

Comments

  • BeanBean Posts: 8,129
    edited 2007-06-11 21:33
    You have too much interrupt code pushing the SUB definitions into the upper half.

    Here is how you fix it:

    INTERRUPT
    · GOTO ISR_Start

    ' Define SUBs here

    ISR_Start:
    · ' INTERRUPT CODE HERE
    · RETURNINT

    I have attached a modified version of your program that will compile cleanly.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    “The United States is a nation of laws -· poorly written and randomly enforced.” - Frank Zappa

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    www.hittconsulting.com
  • SamTheManSamTheMan Posts: 43
    edited 2007-06-11 21:41
    I got the file. thank you very much
Sign In or Register to comment.