5.8.4 STATUS

Status Register
Note:
  1. For Borrow, the polarity is reversed. A subtraction is executed by adding the two’s complement of the second operand. For Rotate (RRCF, RLCF) instructions, this bit is loaded with either the high or low-order bit of the Source register.
Name: STATUS
Offset: 0x03 + n*0x80 [n=0..63]

Bit 76543210 
    TOPDZDCC 
Access ROROR/WR/WR/W 
Reset 11000 

Bit 4 – TO Time-Out bit

Reset States: 
POR/BOR = 1
All Other Resets = q
ValueDescription
1 Set at power-up or by execution of CLRWDT or SLEEP instruction
0 A WDT time-out occurred

Bit 3 – PD Power-Down bit

Reset States: 
POR/BOR = 1
All Other Resets = q
ValueDescription
1 Set at power-up or by execution of CLRWDT instruction
0 Cleared by execution of the SLEEP instruction

Bit 2 – Z Zero bit

Reset States: 
POR/BOR = 0
All Other Resets = u
ValueDescription
1 The result of an arithmetic or logic operation is zero
0 The result of an arithmetic or logic operation is not zero

Bit 1 – DC  Digit Carry/Borrow bit(1)

ADDWF, ADDLW, SUBLW, SUBWF instructions
Reset States: 
POR/BOR = 0
All Other Resets = u
ValueDescription
1 A carry-out from the 4th low-order bit of the result occurred
0 No carry-out from the 4th low-order bit of the result

Bit 0 – C  Carry/Borrow bit(1)

ADDWF, ADDLW, SUBLW, SUBWF instructions
Reset States: 
POR/BOR = 0
All Other Resets = u
ValueDescription
1 A carry-out from the Most Significant bit of the result occurred
0 No carry-out from the Most Significant bit of the result occurred
For Borrow, the polarity is reversed. A subtraction is executed by adding the two’s complement of the second operand. For Rotate (RRCF, RLCF) instructions, this bit is loaded with either the high or low-order bit of the Source register.