#include<p16f877a.inc>
ORG 0X00
ADC1 EQU 0X40
MOVLW 0X27 ; 39 IN DEC
MOVWF ADC1
MOVLW 0X23 ; 35 IN DEC
SUBWF ADC1,1
END
after running the program the status bit is reading 0x1B and i am getting an message
CORE-W0014: Halted due to PC incrementing over the Maximum PC address and wrapping back to Zero
i tried keeping a CLRF STATUS after the sub operation even then i am getting status as 0x1B
why am i getting a carry and a digit carry?? can anyone please help me out....
ORG 0X00
ADC1 EQU 0X40
MOVLW 0X27 ; 39 IN DEC
MOVWF ADC1
MOVLW 0X23 ; 35 IN DEC
SUBWF ADC1,1
END
after running the program the status bit is reading 0x1B and i am getting an message
CORE-W0014: Halted due to PC incrementing over the Maximum PC address and wrapping back to Zero
i tried keeping a CLRF STATUS after the sub operation even then i am getting status as 0x1B
why am i getting a carry and a digit carry?? can anyone please help me out....