Searching \ for '[SX] Error 44 , how to prevent it' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/ubicom/devices.htm?key=sx
Search entire site for: 'Error 44 , how to prevent it'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Error 44 , how to prevent it'
2005\12\06@130518 by inakin/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, inaki wrote:

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 ?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99619
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\06@131902 by kd5dhun/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, kd5dhu wrote:

Make sure you are using the current version of SX/B 1.42.01 it can be found here:

http://forums.parallax.com/forums/default.aspx?f=7&m=54473
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)."
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99619#m99622
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\06@153555 by inakin/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, inaki wrote:

Actually I am using the SUB technique and I get the same error.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99619#m99635
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\06@154005 by kd5dhun/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, kd5dhu wrote:

Can you post the code that you are having problems with? Maybe this will help locating the problem, or maybe someone else might have some other ideas.

Mike
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99619#m99637
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\06@154030 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Please post you code (always recommended when you're having a problem) -- I'll run it and figure out what you've done wrong .  Do it quickly, though, tomorrow morning I start out on vacation and may not have much access to the forums.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99619#m99638
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\06@165559 by beann/a
flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

You must declare the SUBs before any code (except the interrupt handler).
In other word the SUB declaration must be in the 1st half of the code page.
Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99619#m99645
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

2005\12\07@042130 by inakin/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, inaki wrote:

Thanks, I have placed all my SUBs in top of the code and the definition of functions in the bottom. This solves the problem. :-)
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=99619#m99674
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...