The BCLR, BSET, BRCLR, and BRSET commands should ONLY have commas before the X or Y and spaces elsewhere. For example, these works: BSET 0,X $80 ;Set bit 7 in memory location (X) BSET 0,X BIT7 ;Set bit 7 in memory location (X) BCLR 0,X INV7 ;Clear all bits except 7 in memory location (X) BRCLR TFLG2,X BIT6 Label1 BRSET TFLG2,X BIT7 Label2 BIT7 EQU %10000000 BIT6 EQU %01000000 INV7 EQU %01111111 For example, this does NOT work: BSET 0,X,$80 ;does NOT work BRCLR TFLG2,X,BIT6,Label1 ;does NOT work ******************************* Some of the pulse accumulator functions don't work properly.