Error 44 , how to prevent it
I am writing a simple program in SX/B and I get frequently the error #44: Address xxx is not within lower half of memory page, when calling subroutines.
I understand this·occurs because I am trying to·perform a call too far ? But how can I prevent this·problem? I understant this must be·pretty common isn't it ?
By the way, how much is too far for a subroutine call ?
·
I understand this·occurs because I am trying to·perform a call too far ? But how can I prevent this·problem? I understant this must be·pretty common isn't it ?
By the way, how much is too far for a subroutine call ?
·
Comments
http://forums.parallax.com/showthread.php?p=517621
Take a look at the help file, you will need to define your subroutines, look at the gosub command:
"Declared subroutines simplify SX/B programming by removing the necessity of the GOSUB keyword (which, in effect, allows the programmer to extend the language by creating new commands), it allows the compiler to validate the number of parameters being passed, and -- most valuable to the programmer -- it allows subroutine code to be placed anywhere in memory without concern of code page boundaries (now handled automatically)."
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"OEM NMEA GPS Module" Now available on ebay for only $19.99, FREE shipping until 2006!
Product web site: http://www.allsurplus.net/Axiom/
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"OEM NMEA GPS Module" Now available on ebay for only $19.99, FREE shipping until 2006!
Product web site: http://www.allsurplus.net/Axiom/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
In other word the SUB declaration must be in the 1st half of the code page.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·