Motorola HC12 Refrence Manual page 73

Table of Contents

Advertisement

ADDA
(A) + (M) ⇒ A
Operation:
Description:
Adds the content of memory location M to accumulator A and places the
result in A. This instruction affects the H status bit, so it is suitable for use
in BCD arithmetic operations (see DAA instruction for additional informa-
tion).
Condition Codes and Boolean Formulas:
S
H:
N:
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
ADDA # opr8i
ADDA opr8a
ADDA opr16a
ADDA oprx0_xysp
ADDA oprx9,xysp
ADDA oprx16,xysp
ADDA [D ,xysp ]
ADDA [ oprx16,xysp ]
CPU12
REFERENCE MANUAL
Add without 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
8B ii
9B dd
BB hh ll
AB xb
AB xb ff
AB xb ee ff
AB xb
AB xb ee ff
ADDA
Cycles
Access Detail
1
P
3
rfP
3
rOP
3
rfP
3
rPO
4
frPP
6
fIfrfP
6
fIPrfP
MOTOROLA
6-13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents