EasyManua.ls Logo

Motorola MC68HC908AB32 - Condition Code Register (CCR)

Motorola MC68HC908AB32
392 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Central Processor Unit (CPU)
Technical Data MC68HC908AB32Rev. 1.0
94 Central Processor Unit (CPU) MOTOROLA
5 are set permanently to logic 1. The following paragraphs describe the
functions of the condition code register.
V — Overflow Flag
The CPU sets the overflow flag when a two's complement overflow
occurs. The signed branch instructions BGT, BGE, BLE, and BLT use
the overflow flag.
1 = Overflow
0 = No overflow
H — Half-Carry Flag
The CPU sets the half-carry flag when a carry occurs between
accumulator bits 3 and 4 during an add-without-carry (ADD) or add-
with-carry (ADC) operation. The half-carry flag is required for binary-
coded decimal (BCD) arithmetic operations. The DAA instruction uses
the states of the H and C flags to determine the appropriate correction
factor.
1 = Carry between bits 3 and 4
0 = No carry between bits 3 and 4
Bit 7 654321Bit 0
Read:
V11HI NZC
Write:
Reset: X 1 1X1XXX
X = Indeterminate
Figure 7-6. Condition Code Register (CCR)

Table of Contents

Related product manuals