In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tony Leyland wrote: Hi Bean, I've attached a screen grab and coloured the memory locations (SX28) that get assigned for the 30 byte array (in red) and the 40 byte array (in cyan). The 30 byte array has it's first array element at location D2 and the last one (topmost as I called it in the last post) at location FF. The 40 byte array has it's first array element at location 7A and the last one (topmost as I called it in the last post) at location D1. Now the next time I call my memory management routine to ask for another array to be allocated (say 12 bytes), the first array element will be at location 5E and the last one at location 79. What I would like to now please is: What are the exact memory locations used for the storage of TRIS register etc that Jon mentioned in high address in the hight bank. That way I can adjust my memory management routine to stay away from this area when allocating memory for my arrays (SX28). As an example, if the TRIS etc is using locations FA to FF then my 30 byte array mentioned above would move 'down' in memory and have it's 1st array element at location BC and end at F9. The 40 byte array would also move 'down' respectfully. In that way I never interfere with the 'reserved' locations used by SX/B. I would also of course need to keep a track of the address of the LAST variable that I have defined in SX/B, so that my arrays cannot be assigned into this area. Thanks for pointing out advantages of SX48 to me, I'll certainly consider using them. Tony ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=94526#m94540 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)