FIFR

FIFR, FIFRP

 

FIFR instruction copies the array to the Destination and moves specific word to the other position.

 

 

S

Source to copy

D

Destination

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

FIFR

FIFRP

D

o

o

o

o

o

o

o

o

-

o

o

o

o

3

o

-

-

S

-

-

-

-

-

-

-

-

-

o

o

o

-

 

  • When enabled, the number of word device(S) is decreased by one word.

  • FIFR(P) instruction shifts each elements of array(S+2 ~ S+4) within S+1 ~ S+3 and copies 20 (S+1) to D.

 

Example)

If X10 is ON, copy D52 and D53 (2 array) and write them to D51 and D52.

The number of word device 3 in D50 is decreased to 2 word.

And then FIFR copies 200 (D51) to D10.