Motorola HC12 Refrence Manual page 113

Table of Contents

Advertisement

CBA
Operation:
(A) – (B)
Description:
Compares the content of accumulator A to the content of accumulator B
and sets the condition codes, which may then be used for arithmetic and
logical conditional branches. The contents of the accumulators are not
changed.
Condition Codes and Boolean Formulas:
S
N:
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
CBA
CPU12
REFERENCE MANUAL
Compare Accumulators
X
H
I
N
Z
Set if MSB of result is set; cleared otherwise.
Set if result is $00; cleared otherwise.
A7 • B7 • R7 + A7 • B7 • R7
Set if a two's complement overflow resulted from the operation; cleared
otherwise.
A7 • B7 + B7 • R7 + R7 + A7
Set if there was a borrow from the MSB of the result; cleared otherwise.
Address Mode
INH
INSTRUCTION GLOSSARY
V
C
Object Code
18 17
CBA
Cycles
Access Detail
2
OO
MOTOROLA
6-53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents