1. Inverse caculate
1. Inverse caculate
1.1. Instruction Description
The instruction performs a reverse operation on the input (IN) and loads the result into the output (OUT) register.
1.2. The valid operands of the instruction
1.2.1. Single word instruction(INVW)
| Input/Output | Data Type | operand | Description |
|---|---|---|---|
| IN | 16 bit integer | D/CV/TV/AI/AO/K/H/V/Z/FD, bit composite word (X/Y/M/C/T/S), local variable (LW) | Input |
| OUT | 16 bit integer | D/CV/TV/AO/V/Z/FD, bit composite word (Y/M/C/T/S), local variable (LW) | output |
1.2.2. Double word instruction(INVD)
| IN | 32-bit integer | D/CV/K/H/FD, bit composite word (X/Y/M/C/T/S), local variable (LD) | input |
| OUT | 32-bit integer | D/CV/FD, bit composite word (Y/M/C/T/S), local variable (LD) | output |
1.3. Example
command table:
NETWORK 000
LD X000
INVD D0 D2 // Reverse D0 and output it to D2
图1 INVW