In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: I found an even better way than using a fixed bank number. void RomCopy(char dest, long source, char len) { char i = 0; while (len > 0) { _MainTemp = RomChar(source); char k = LargeArrayAddress(dest,i); _SystemRam[k] = _MainTemp; FSR = &source; //select correct bank source++; i++; len--; } } I also noted that all 'asm code' between /*<?asm and ?>*/ always gets inserted, also for library functions that are not used. This is not a problem as this code is never called. But it does consume codespace. 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=207987#m210388 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)