In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dog8spam wrote: Second post: Setting FSR to $20 will acess bank 2. I will use $10-$1C in bank 2, 3, and 4 through loops, setting FSR each time ($20-$2C, $30-$3c, ect) would be inefficient and take up extra space. The only way I know to write to a register besides defining it and using FSR is mov $12,#$FF for example. Is there any way I can use a variable in place of the $12? Looking back I mistyped my example... I there a way I can write to a register depending on the contents of a variable? or Can I use a variable to point to a register without modifying FSR? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89580#m89619 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)