Motorola HC12 Refrence Manual page 124

Table of Contents

Advertisement

COMB
(B) = $FF – (B) ⇒ B
Operation:
Description:
Replaces the content of accumulator B with its one's complement. Each
bit of B is complemented. Immediately after a COM operation on un-
signed values, only the BEQ, BNE, LBEQ, and LBNE branches can be
expected to perform consistently. After operation on two's complement
values, all signed branches are available.
Condition Codes and Boolean Formulas:
S
N:
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
COMB
MOTOROLA
6-64
Complement B
X
H
I
N
Z
Set if MSB of result is set; cleared otherwise.
Set if result is $00; cleared otherwise.
0; Cleared.
1; Set (for M6800 compatibility).
Address Mode
INH
INSTRUCTION GLOSSARY
V
C
0
1
Object Code
51
COMB
Cycles
Access Detail
1
O
CPU12
REFERENCE MANUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents