40
All and more about Sharp PC
-1
500 at http:/lwww.PC-1500.info
@ SHR
(S
H
ift
Right)
The contents
of
the accumulat
or
ar
e s
hi
fted right.
•
Fo
rmat
•Operati
on
SHR
"
o"
-·I
---
J
~
....
....
....
....
....
....
....
A
(EX} SHR
! 1
0 0 1 0 0 1
1
I
l!J
Exec
u
te
~
ro
1
0 0
I
0
0
I
QJ
A
Carr
y
A
Carry
@ D
RL
(D
ig
it
Rotate Left)
Left rotation tak
es
bet
wee
n the accumulat
or
and the exte
rn
al me
mor
y
(X
c·cg) or
ll
(Xrcg) in
un
it
of
dig
it
(4 b
it
s)
.
In other words. the
low
order 4 bits
of
the external memo
ry
arc moved to the high order
4 bi
ts
of
t
he
external memory, the
hi
gh order 4 bits
of
the external memory arc mo
ve
d
to
the high order 4 bi
ts
of the accumulat
or.
the high order 4 bits of the accumulator arc
moved to the l
ow
order 4 b
it
s
of
the external memory. and the
low
order 4 bits of the
accumula
to
r are moved to the
low
order 4 bits
of
the exte
rn
al memory at a
lU
tim
es
.
No
change takes pl
ac
e in
Oags
.
•Fo
rmat
DRL
(
Xr
eg)
DRL
ll
(X
reg)
•Operation
t
1
t
A
Memory
[(
Xr
eg
) or #
(Xreg
) I
(EX)
DR
L (X
reg
)
Xr
eg
= 4
700
H
A =
.__[
0
___
0_ 1
__
Contents = 11 0 1 1 0 0 I
of 4
700H
.
A= I 1 0 I I 0 0 1
11
E
xec
ute
-
Conten
ts _ [
0 0 1 1 0
1
of
4
700H
-
ol
Do
not sell this PDF !! !