I tried the following to see if the reslt of a substraction was negative... movf test, w sublw 0x0x btfss w, 7 ; see if the MSB in W is set do this do that but it did not work...... what works is after the substraction movwf temp btfss temp, 7 di this do that Can anyone tell how come? Cannot bits in W be tested? Henk Tobbe VK2GWK