Hi,
It works perfectly fine here. I had to add a # in the LCDOUT statementin order to have it actually display "1" or "0" but apart from that it works as I'd exect it to./Henrik.Code:MyVAR VAR BYTE MyWord VAR WORD MyBIT VAR BIT MyWORD = %1010101010101010 For MyVar = 0 to 15 MyBit = MyWord.0(MyVar) LCDOut $FE, 1, "Bit " ,#MyVar, "=", #MyBit Pause 2000 Next MyVar


						
					
				
				
				
					
  Reply With Quote

Bookmarks