> I'm having problems with some very simple code. The MPLAB 3.22 > simulator seems to stick on 07H in this routine when decrementing > the variable del_y. What am I doing wrong? > > > > ;Initial program setup for PIC84 > > COUNT EQU 008H ;Tim's Counter DEL_Y constant > DEL_Y EQU 00H ;Tim's DEL_Y Variable > > > ;some more program stuff... > > > MOVLW COUNT ;Put the COUNT in W (accumulator) > MOVWF DEL_Y ;Move COUNT to f (DEL_Y) > COUNTR DECFSZ DEL_Y,F ;F-1 --> DEL_Y > GOTO COUNTR; ;*** Simulator gets stuck between > ;*** here and "COUNTR" > > > > TIA, > > Tim Crist > > COUNTR DECFSZ DEL_Y,F ;F-1 --> DEL_Y shall read COUNTR DECFSZ DEL_Y ; ,F is your bug Bye,