In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Version 1.51.03 allows words in SHIFTOUT, so [code]SHIFTOUT SDO, SCLK, MSBFIRST, adCh\12[/code] is valid (I tested it before posting my response). Sorry, though, that I didn't double-check the same thing on SHIFTIN; in fact, just now looking in the help file is specifies bytes only in SHIFTIN, so you do have to use the form [codeSHIFTIN SDI, SCLK, MSBPRE, result_MSB\4 SHFITIN SDI, SCLK, MSBPRE, result_LSB[/code] WATCH has recently been added to SX/B and it's not quite as flexible as the assembly version. I do this in my programs: [code]\ WATCH result, 12, udec[/code] The \ specifies inline assembly, "watching" the the lower 12 bits of result, using unsigned decimal output. I just did a quick little debug test on a two-line program [code]result = %0000_1111_1111_1111 \ watch result, 12, udec[/code] and the value in result was correctly specified as 4095. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=183991#m184212 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)