Motorola HC12 Refrence Manual page 157

Table of Contents

Advertisement

INCA
(A) + $01 ⇒ A
Operation:
Description:
Add one to the content of accumulator A.
The N, Z and V status bits are set or cleared according to the results of
the operation. The C status bit is not affected by the operation, thus al-
lowing the INC instruction to be used as a loop counter in multiple-preci-
sion computations.
When operating on unsigned values, only BEQ, BNE, LBEQ, and LBNE
branches can be expected to perform consistently. When operating on
two's complement values, all signed branches are available.
Condition Codes and Boolean Formulas:
S
N:
Z:
V:
Addressing Modes, Machine Code, and Execution Times:
Source Form
INCA
CPU12
REFERENCE MANUAL
Increment A
X
H
I
N
Z
Set if MSB of result is set; cleared otherwise.
Set if result is $00; cleared otherwise.
Set if there is a two's complement overflow as a result of the opera-
tion; cleared otherwise. Two's complement overflow occurs if and
only if (A) was $7F before the operation.
Address Mode
INH
INSTRUCTION GLOSSARY
V
C
Object Code
42
INCA
Cycles
Access Detail
1
O
MOTOROLA
6-97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents