Motorola HC12 Refrence Manual page 72

Table of Contents

Advertisement

ADCB
(B) + (M) + C ⇒ B
Operation:
Description:
Adds the content of accumulator B to the content of memory location M,
then adds the value of the C bit and places the result in B. 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
ADCB # opr8i
ADCB opr8a
ADCB opr16a
ADCB oprx0_xysp
ADCB oprx9,xysp
ADCB oprx16,xysp
ADCB [D ,xysp ]
ADCB [ oprx16,xysp ]
MOTOROLA
6-12
Add with 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
C9 ii
D9 dd
F9 hh ll
E9 xb
E9 xb ff
E9 xb ee ff
E9 xb
E9 xb ee ff
ADCB
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