Motorola HC12 Refrence Manual page 71

Table of Contents

Advertisement

ADCA
(A) + (M) + C ⇒ A
Operation:
Description:
Adds the content of accumulator A to the content of memory location M,
then adds the value of the C bit and places the result in A. This instruc-
tion affects the H status bit, so it is suitable for use in BCD arithmetic op-
erations (see DAA instruction for additional information).
Condition Codes and Boolean Formulas:
S
H:
N:
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
ADCA # opr8i
ADCA opr8a
ADCA opr16a
ADCA oprx0_xysp
ADCA oprx9,xysp
ADCA oprx16,xysp
ADCA [D ,xysp ]
ADCA [ oprx16,xysp ]
CPU12
REFERENCE MANUAL
Add with Carry to A
X
H
I
N
Z
X3 • M3 + M3 • R3 + R3 • X3
Set if there was a carry from bit 3; cleared otherwise.
Set if MSB of result is set; cleared otherwise.
Set if result is $00; cleared otherwise.
X7 • M7 • R7 + X7 • M7 • R7
Set if two's complement overflow resulted from the operation; cleared
otherwise.
X7 • M7 + M7 • R7 + R7 • X7
Set if there was a carry from the MSB of the result; cleared otherwise.
Address Mode
IMM
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
INSTRUCTION GLOSSARY
V
C
Object Code
89 ii
99 dd
B9 hh ll
A9 xb
A9 xb ff
A9 xb ee ff
A9 xb
A9 xb ee ff
ADCA
Cycles
Access Detail
1
P
3
rfP
3
rOP
3
rfP
3
rPO
4
frPP
6
fIfrfP
6
fIPrfP
MOTOROLA
6-11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents