Motorola HC12 Refrence Manual page 209

Table of Contents

Advertisement

NEGB
0 – (B) = (B) + 1 ⇒ B
Operation:
Description:
Replaces the content of accumulator B with its two's complement (the
value $80 is left unchanged).
Condition Codes and Boolean Formulas:
S
N:
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
NEGB
CPU12
REFERENCE MANUAL
Negate B
X
H
I
N
Z
Set if MSB of result is set; cleared otherwise.
Set if result is $00; cleared otherwise.
R7 • R6 • R5 • R4 • R3 • R2 • R1 • R0
Set if there is a two's complement overflow from the implied subtraction
from zero; cleared otherwise. Two's complement overflow occurs if and
only if (B) = $80.
R7 + R6 + R5 + R4 + R3 + R2 + R1 + R0
Set if there is a borrow in the implied subtraction from zero; cleared oth-
erwise. Set in all cases except when (B) = $00.
Address Mode
INH
INSTRUCTION GLOSSARY
V
C
Object Code
50
NEGB
Cycles
Access Detail
1
O
MOTOROLA
6-149

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents