Motorola HC12 Refrence Manual page 74

Table of Contents

Advertisement

ADDB
(B) + (M) ⇒ B
Operation:
Description:
Adds the content of memory location M to accumulator B and places the
result in B. 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
ADDB # opr8i
ADDB opr8a
ADDB opr16a
ADDB oprx0_xysp
ADDB oprx9,xysp
ADDB oprx16,xysp
ADDB [D ,xysp ]
ADDB [ oprx16,xysp ]
MOTOROLA
6-14
Add without Carry to B
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
CB ii
DB dd
FB hh ll
EB xb
EB xb ff
EB xb ee ff
EB xb
EB xb ee ff
ADDB
Cycles
Access Detail
1
P
3
rfP
3
rOP
3
rfP
3
rPO
4
frPP
6
fIfrfP
6
fIPrfP
CPU12
REFERENCE MANUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents