Online PIC Compiler

STATUS Register

IRP
RP1 RP0 TO PD Z DC C
7
6 5 4 3 2 1 0



7
IRP Unimplemented: Maintain as 0
6
RP1 Unimplemented: Maintain as 0
5
RP0 1:Select Bank 1 (80h - FFh)
0:Select Bank 0 (00h - 7Fh)
4
TO Becomes 1 after Power-up, CLRWDT or SLEEP instructions
Becomes 0 after a WDT time-out occurs
3
PD Becomes 1 after Power-up or CLRWDT instruction
Becomes 0 after SLEEP instruction
2
Z Zero Flag
Becomes 1 when the result of an arithmetic or logic operation is zero
Becomes 0 when the result of an arithmetic or logic operation is NOT zero
1
DC Digit Carry/Borrow Flag (for borrow, the polarity is reversed)
Becomes 1 when a carry-out from the 4th low order bit of the result occurred
Becomes 0 if carry-out from the 4th low order bit of the result did NOT occur
0
C Carry/Borrow Flag (for borrow, the polarity is reversed)
Becomes 1 if a carry-out from the Most Significant bit of the result occurred
Becomes 0 if a carry-out from the Most Significant bit of the result did NOT occur
*REFERENCE: PIC16F84A Datasheet