beautypg.com

Zilog Z80180 User Manual

Page 194

background image

Z8018x

Family MPU User Manual

UM005003-0703

179

6

Z

R/W 0

Zero.
Z is set to 1 when instruction execution produces 0 result.
Otherwise, Z is reset to 0.

5

Not Used ?

?

Not used

4

H

R/W 0

Half Carry.
H is used by the DAA (Decimal Adjust Accumulator)
instruction to reflect borrow or carry from the least
significant 4 bits and thereby adjust the results of BCD
addition and subtraction.

3

Not Used ?

?

Not used.

2

P/V

R/W 0

P/V: Parity/Overflow.
P/V serves a dual purpose. For logical operations P/V is
set to 1 if the number of 1 bit in the result is even and P/V
is reset to 0 if the number of 1 in the result is odd. For two
complement arithmetic, P/V is set to 1 if the operation
produces a result which is outside the allowable range
(+ 127 to -128 for 8-bit operations, + 32767 to - 32768 for
16-bit operations).

1

N

R/W 0

Negative.
N is set to 1 if the last arithmetic instruction was a subtract
operation (SUB, DEC, CP, etc.) and N is reset to 0 if the
last arithmetic instruction was an addition operation (ADD,
INC, etc.).

0

C

R/W 0

Carry.
C is set to 1 when a carry (addition) or borrow (subtraction)
from the most significant bit of the result occurs. C is also
affected by Accumulator logic operations such as shifts
and rotates.

Bit
Position Bit/Field R/W

Value

Description

This manual is related to the following products: