FIFW
FIFW, FIFWP
FIFW instruction copies the source to the Destination (assigned device address).
| |
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 | ||
FIFW FIFWP | S | o | o | o | o | o | o | o | o | - | o | o | o | o | 3 | o | - | - |
D | - | - | - | - | - | - | - | - | - | o | o | o | - |
When enabled, the number of word device(S) is increased by one word.
FIFW(P) instruction shift each element of array (S+1 ~ S+3) into the same position within array S and copies 1234 (D) and places at the end of element of array S (S+4).
Example)
If X00 is ON, copy D11, D12 and D13 (3 array) and write them to the same position.
The number of word device 3 in D10 is increased to 4 word.
And then FIFW copies 2222 (D00) to D14.