SN8P2604
8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 28
Version 1.1
2.1.4.4 PROGRAM
FLAG
The PFLAG includes carry flag (C), decimal carry flag (DC) and zero flag (Z). If the result of operating is zero or there is
carry, borrow occurrence, then these flags will be set to PFLAG register.
086H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PFLAG
NT0 NPD -
-
-
C DC
Z
Read/Write
R/W R/W -
-
- R/W R/W R/W
After
reset
- - - - - 0 0 0
Bit [7:6]
NT0, NPD:
Reset status flag.
NT0 NPD
Reset
Status
0
0
Watch-dog time out
0 1
Reserved
1
0
Reset by LVD
1
1
Reset by external Reset Pin
Bit 2
C:
Carry flag
1 = Addition with carry, subtraction without borrowing, rotation with shifting out logic “1”.
0 = Addition without carry, subtraction with borrowing signal, rotation with shifting out logic “0”.
Bit 1
DC:
Decimal carry flag
1 = Addition with carry from low nibble, subtraction without borrow from high nibble.
0 = Arithmetic without carry from low nibble, subtraction with borrow from high nibble.
Bit 0
Z:
Zero flag
1 = ACC is zero after executing a instruction.
0 = ACC is not zero after executing a instruction.