In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: I think I may be on to something. I asked a PIC developer at work and he said that in a situation like this: PIC "C" program lines: #define DAT_R1 PORTDbits.RD4 [b][color=red>DAT_R1=value1][/b] The PIC simply takes the LSB of value1 and sends it to the DAT_R1 (which is PORTDbits.RD4). [b]SO...in SX/B this can be simplified to:[/b] [b]DAT_R1 = value.1[/color][/b] Since it also masks off the byte to the LSB anyway. SX/B compiles now with no errors. I will try this out tonight. [b]Does this make sense to an PIC "C" programmers?[/b] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=273480#m275663 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)