FPOP

FPOP, FPOPP

 

FPOP instruction overwrites the array of Source to the Source and copies the last word of source to the Destination.

 

D

Destination

S

Source

 

 

Instruction

Device address

No. of Steps

Flag

M

X

Y

K

L

F

T

C

S

Z

D

@D

Int.

 

Error

Zero

Carry

FPOP

FPOPP

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.

  • FPOP(P) instruction shifts each elements of array(S+1 ~ S+3) within S+1 ~ S+3 and copies the last word S+4 (100) to the Destination.

 

 

Example)

If X10 is ON, copy D301, D302, and D303, (3 array) and write them to the same position D301, D302 and D303.

The number of word device 4 in D300 is decreased to 3 word.

And then FPOP copies the last word 500 (D304) to D100.