DSFR DSFL

DSFR, DSFRP, DSFL, DSFLP

 

DSFR(P) instruction shifts the specified WORD data(D) towards the 1 WORD right side and loads Source Word into Word 0 of Array.

DSFL(P) instruction shifts the specified WORD data(D) towards the 1 WORD left side and loads Source Word into Word 0 of Array.

 

D

Source

n

Number of bits to move right(BSFR) or left(BSFL)

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

DSFR(P)

DSFL(P)

D

o

-

o

o

o

-

o

o

-

o

o

o

-

3

o

-

o

n

o

o

o

o

o

o

o

o

-

o

o

o

o

 

DSFR(P)

Format : DSFRP D(starting device address to move right) n(number of source device to move right)

 

Example)

If X01 is ON, the DSFRP instruction shifts D63~D69 (7 device value) 1 Word right side and loads 0 into D69.

 

 

 

 

DSFL(P)

Format : DSFL D(starting device address to move left) n(number of source device to move left)

 

Example)

If X01 is ON, the DSFLP instruction shifts D63~D69 (7 device value) 1 Word left side and loads 0 into D63.