FINS
FINS, FINSP
FINS instruction overwrites the Source and copies the Destination to the (n) position of source.
| |
D | Destination |
S | Source |
n | Position of Destination where D is stored |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
FINS FINSP | D | o | o | o | o | o | o | o | o | - | o | o | o | o | 4 | o | - | - |
S | - | - | - | - | - | - | - | - | - | o | o | o | - | |||||
n | o | o | o | o | o | o | o | o | - | o | o | o | o |
When enabled, the number of word device(S) is increased by one word.
FINS(P) instruction copies 200(D) to S+2. (n is 2 which means 2nd word from S)
S+1 shifts to S+1. As S+2 is occupied by D, S+2 and S+3 move to S+3 and S+4 each.
Example)
If X10 is ON, copy D10 (951) to D55 and shift D51, D52, D53, and D54 to the same position.
As 951 (D10) is already occupied in D55, D55 and D56 are shifted to D56 and D57 each.
The number of word device 6 in D50 is increased to 7 word.