ESCL
ESCL, ESCLP
ESCL instruction scales number of float source according to condition of P and saves the scaled value to the Destination.
| |
S | Source |
D | Destination |
P | Scale condition Table |
n | Number of data to scale |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
ESCL ESCLP | S | o | o | o | o | o | o | o | o | - | o | o | o | o | 5 | o | - | - |
D | o | - | o | o | o | - | - | - | - | o | o | o | - | |||||
P | o | - | - | o | o | - | - | - | - | o | o | o | - | |||||
n | o | o | o | o | o | o | o | o | - | o | o | o | o |
ESCL instruction scales number of float source according to condition of P and saves the scaled value to the Destination.
Scale condition (P)
P | Minimum value of source to be scaled (Start Source) |
P + 1 | Maximum value of source to be scaled (Last Source) |
P + 2 | Scaled minimum value of destination (Start Dest.) |
P + 3 | Scaled maximum value of destination (Last Dest.) |
Example)
If X00 is ON, ESCL instruction scales 10 float value (D0~D9) according to scale condition (D200 to D203) and saves the scaled value to D100~D109.
Scale condition
D200 | Minimum value of source to be scaled (Start Source) |
D201 | Maximum value of source to be scaled (Last Source) |
D202 | Scaled minimum value of destination (Start Dest.) |
D203 | Scaled maximum value of destination (Last Dest.) |