In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: I do have another bug that is specific to sx18/20/28 void RomCopy(char dest, long source, char len) { char i = 0; while (len > 0) { _SystemTemp = RomChar(source); char k = LargeArrayAddress(dest,i); _SystemRam[k] = _SystemTemp; /*<?asm bank source ;;cc1b misses this statement ?>*/ source++; i++; len--; } } cc1b misses a bank statement after writing a value using indf. I fixed it by adding the bank statement. Note that it only works while there is no other local parameter named source (otherwise cc1b may rename source to source_1) For sx48/52, the bank statement is generated by cc1b. If not already, can you mail this bug also to B. Knudsen 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#m209919 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)