In SX Microcontrollers, SX/B Compiler and SX-Key Tool, metron9 wrote: I have been working with assemblers for a long time back to the 6502 days. I have tried to learn the SX but the following three pictures show you why I don't understand it. Debugger running, three lines of code, pictures are step1, step2, and step3 Step1 shows the register w = F0 = %111000 RA has just been loaded and contains %00001111 That's fine I understand it flips the bits 0=1 and 1=0 why the flipping is necessary is beyond the scope of this post. Step2 shows: mov M,#f MOV w,#0f mov !RB,W have just been executed now RA changes from %00001111 to %00000000 Why? Step3 shows mov !RB,W Now w is still %01000101 but !RB is now %11111110 ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=154463 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)