Motorola HC12 Refrence Manual page 123

Table of Contents

Advertisement

COMA
(A) = $FF – (A) ⇒ A
Operation:
Description:
Replaces the content of accumulator A with its one's complement. Each
bit of A 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
COMA
CPU12
REFERENCE MANUAL
Complement A
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
41
COMA
Cycles
Access Detail
1
O
MOTOROLA
6-63

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents