In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dog8spam wrote: What I am trying to do is copy a single bit into a variable through IND. I have run into a brick wall and am hoping I'm wrong about something here. Here FSR is changed when temp is accessed, changing FSR to temp before currentX can be written to. mov fsr,currentX mov w,temp and w,#%00000001 snz setb IND.0 sz clrb IND.0 Try to change FSR after accesing temp changes w. mov w,temp mov fsr,currentX and w,#%00000001 snz setb IND.0 sz clrb IND.0 Try to change FSR after w is accessed messes up the zero flag. mov w,temp and w,#%00000001 mov fsr,currentX snz setb IND.0 sz clrb IND.0 So far as I can tell there is no way this code will work. I'm hoping some of my logic here is flawed or otherwise it will be back to the drawing board for me. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=95439 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)