Motorola HC12 Refrence Manual page 240

Table of Contents

Advertisement

SBCA
(A) – (M) – C ⇒ A
Operation:
Description:
Subtracts the content of memory location M and the value of the C status
bit from the content of accumulator A. The result is placed in A. For sub-
traction instructions, the C status bit represents a borrow.
Condition Codes and Boolean Formulas:
S
N:
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
SBCA # opr8i
SBCA opr8a
SBCA opr16a
SBCA oprx0_xysp
SBCA oprx9,xysp
SBCA oprx16,xysp
SBCA [D ,xysp ]
SBCA [ oprx16,xysp ]
MOTOROLA
6-180
Subtract with Carry from A
X
H
I
N
Z
Set if MSB of result is set; cleared otherwise.
Set if result is $00; cleared otherwise.
X7 • M7 • R7 + X7 • M7 • R7
Set if a two's complement overflow resulted from the operation;
cleared otherwise.
X7 • M7 + M7 • R7 + R7 • X7
Set if the absolute value of the content of memory plus previous
carry is larger than the absolute value of the accumulator; cleared
otherwise.
Address Mode
IMM
DIR
EXT
IDX
IDX1
IDX2
[D,IDX]
[IDX2]
INSTRUCTION GLOSSARY
V
C
Object Code
82 ii
92 dd
B2 hh ll
A2 xb
A2 xb ff
A2 xb ee ff
A2 xb
A2 xb ee ff
SBCA
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