In SX Microcontrollers, SX/B Compiler and SX-Key Tool, RS_Jim wrote: @Bean, I have the following piece of code that does not want to compile: Flags VAR Byte AdoneX Var Flags.5 DO tmpw1 = $FFFF GetBit Flags,5 ,__param5 'line wont compile IF __param5 <> 0 THEN AccResult = ACC_RESULT ATIme = __wparam34 tmpW1 = DACC TX_BYTE tmpW1_MSB TX_BYTE tmpW1_LSB TX_STR CRLF ENDIF Loop I get invalid parameter __param5 If I change it to GetBit Flags, AdoneX, __Param5 I get same error if I change it to GetBit Flags,.5,__param5 I get invalid Number of Params what is wrong with my GETBIT Request? If i comment out the Getbit, the program compiles/assembles no problem. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=371089 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)