Individual Instruction Descriptions
4-170
4.14.75 SHRAC Shift Accumulator Right
Syntax
[label] name dest, src,
[,
mod
] Clock,
clk
Word,
w
With RPT,
clk
Class
SHRAC A
n
[~], A
n
[~] [,
next A
] 1 1 n
R
+3 3
Execution [premodify AP if
mod
specified]
dest
⇐
src
>> 1
PC ⇐ PC + 1
Flags Affected OF, SF, ZF, CF are set accordingly
Opcode
Instructions 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SHRAC A
n
[~], A
n
[~] [,
next a
] 1 1 1 0 0
next A
A
n
0 1 0 1 1 0 A~ ~A
Description Premodify accumulator pointer if specified. Shift source accumulator
src
or its
offset to right one bit and store the result into
dest
accumulator or its offset.
MSB of result will be set according to extended sign mode (XM) bit in the status
register.
Example 4.14.75.1 SHRAC A1, A1
Shift right one bit the accumulator A1.
Example 4.14.75.2 SHRAC A1~, A1, ++A
Preincrement by one accumulator pointer AP1. Shift right one bit the newly pointed accumulator A1,
and store result to offset accumulator A1~.