In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: Hi, 1) Due to the internal structure (12 bits per instruction code), the SX does not allow for instructions to directly move a constant value into a register, or for moving the contents of one register into another. So, the W register will have to be used as temporary buffer. Actually, instead of mov w,#%11111110 mov !rb, w you can say mov !rb, #%11111110 i.e. use a so-called "multi-word", or "compound" instruction. As the SX can't execute this as "native" instruction, SASM automatically translates this into two separate instructions, i.e. into mov w,#%11111110 mov !rb, w 2) Select "Help" and then "SX/B" in the SX-Key IDE, any you will enter into an excellent help text, created by Jon Williams 3) Hey, I noticed that Jon was faster this time - so I have nothing to add to his advise. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=97847#m97853 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)