Shop OBEX P1 Docs P2 Docs Learn Events
SX/B Error question — Parallax Forums

SX/B Error question

Basic JimBasic Jim Posts: 106
edited 2006-05-20 15:27 in General Discussion
Hi,
I am trying to compile an SX/B program I wrote but, I get "error 44 pass2: Address is not within lower half of memory page" Can someone point me to where I can get more info on error 44? can't find anything·in the help file. All I'm doing is to go to·a sub routine at that point.

·' Loop until the start switch is tripped
·Do Until Start_Switch = 1 ·' Alias RA.2
·· ···· ·Gosub Counts ' Check for coins "error 44 happens here
·Loop

Counts: ' Look for photodiode activity
·If Dime_Sense = 0··· Then TenCent·'RB.0
·If Penny_Sense = 0·· Then Cent··'RB.1
If Nickel_sense = 0· Then FiveCents·'RB.2
If Quarter_Sense = 0 Then Quart··'RB.3
Gosub Total
If you want I could post the entire code but I think I can figure whats wrong if I can find an error code list.

Thanks,
Jim W.

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-05-20 00:06
    Place a "SUB Counts" before your code, that should fix the problem.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    1+1=10
  • Basic JimBasic Jim Posts: 106
    edited 2006-05-20 00:22
    Thank you Paul,

    That did the trick! But, can anyone tell me where I can find an error list for SX/B?

    Thanks,
    Jim W.
  • BeanBean Posts: 8,129
    edited 2006-05-20 00:57
    Jim,
    That error is not an SX/B error. It is an assembler error.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com


    COMING SOON "SD DATA LOGGER" www.sddatalogger.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • Basic JimBasic Jim Posts: 106
    edited 2006-05-20 15:27
    Hello Bean,
    Thanks, I'm new to this stuff but it's a lot of fun. I'm very happy with your LED displays. They will work great in my projects.
    Jim W.
Sign In or Register to comment.