236
4
4 Instructions4.6.4 Matrix Rotation and Shift
◆
Application
Assume that M8329 = OFF. The bit pattern of the following matrix is rotated to the left:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
01 0 1 0 1 0 1 0 1 0 1 0 1 0 1
01 0 1 0 1 0 1 0 1 0 1 0 1 0 1
01 0 1 0 1 0 1 0 1 0 1 0 1 0 1
D100
D101
D102
Before
execution
D100
D101
D102
M8327
Carry flag
0
After
execution
MBR
M8327
Carry flag
Assume that M8329 = ON. The bit pattern of the following matrix is rotated to the right:
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
01 0 1 0 1 0 1 0 1 0 1 0 1 0 1
01 0 1 0 1 0 1 0 1 0 1 0 1 0 1
01 0 1 0 1 0 1 0 1 0 1 0 1 0 1
D100
D101
D102
Before execution
D100
D101
D102
M8327
Carry flag
After execution
MBR
1
M8327
Carry flag
●
Flags
M8327: Carry ag of matrix shift output
M8329: Matrix shift direction ag
4.7 String Instructions
String instructions
STR Conversion from BIN to string format
VAL Conversion from string to BIN format
ESTR Conversion from binary oating-point number to string format
EVAL Conversion from string to binary oating-point number format
$+ String combination
LEN String length check
INSTR String retrieval
RIGHT String read right
LEFT String read left
MIDR Reading of one string from another
MIDW String replacement at any position
$MOV String transfer