In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: I figured out how cc1b allocates ram to variables. See attached text file for a summary on allocation. Since rambank1 for sx18/20/28 represents another ram area than rambank1 for sx48/52 I added a #define to the 5 header files for chiptypes. (attached zip file). chip sx18: added #define _CHIP_SX18_ chip sx20: added #define _CHIP_SX20_ chip sx28: added #define _CHIP_SX28_ chip sx48: added #define _CHIP_SX48_ chip sx52: added #define _CHIP_SX52_ These allow us to do conditional compilation based on chiptype, eg #ifdef _CHIP_SX18_ //sx18 specific code #endif regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=204491#m205047 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)