Mitsubishi Electronics C64 Home Safety Product User Manual


 
8. Function Commands
SFR, SFRP
- 266 -
{ SFR, SFRP ... Right shift of 16-bit data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
D
{ { { { { {
{
{ { { { { { { {
n
{
{ { { { { {
{
{ { { { { { { { { {
{ {
3
SFR
Shift command
n
D
SFRP
n
D
SFR
SFRP
Setting data
n
No. of device where
shift data is stored.
D
No. of shifts
Function
(1) The 16-bit data of the device designated with D is shifted n bits to the right.
B15 B0…………………………………………………………
00
Carry flag
SM12
D before execution
D after execution
n
n
0 is entered
(2) n bits from the highest order are set to 0.
(3) The T, C shift will be a current value (attribute value or count value) shift. (Shifting with the setting
value is not possible.)