Motorola HC12 Refrence Manual page 196

Table of Contents

Advertisement

LSRA
Operation:
Description:
Shifts all bits of accumulator A one place to the right. Bit 7 is loaded with
zero. The C status bit is loaded from the least significant bit of A.
Condition Codes and Boolean Formulas:
S
N:
Z:
V:
C:
Addressing Modes, Machine Code, and Execution Times:
Source Form
LSRA
MOTOROLA
6-136
Logical Shift Right A
0
b7
– – – – – –
X
H
I
N
Z
0
0; Cleared.
Set if result is $00; cleared otherwise.
N ⊕ C = [N • C] + [N • C] (for N and C after the shift)
Set if (N is set and C is cleared) or (N is cleared and C is set); cleared oth-
erwise (for values of N and C after the shift).
A0
Set if the LSB of A was set before the shift; cleared otherwise.
Address Mode
INH
INSTRUCTION GLOSSARY
C
b0
V
C
Object Code
44
LSRA
Cycles
Access Detail
1
O
CPU12
REFERENCE MANUAL

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpu12

Table of Contents