 |
 |
Pattern D: Change setting contents of an instruction |
 |
|
The setting contents of the instructions may be changed after conversion.
|
|
e.g.: |
The case of copying data from the element number "Int_B" to the size "Int_D" of an integer array variable "IntArr_A" to the element number "Int_C" and after of an integer array variable "IntArr_E" with a block transfer instruction |
|
-
|
Before Conversion |
|
|
Variable
|
Variable type
|
IntArr_A
|
Integer array type
|
Int_B
|
Integer type
|
Int_C
|
Integer type
|
Int_D
|
Integer type
|
IntArr_E
|
Integer array type
|
|
|
|
|
-
|
After Conversion |
|
1. |
“IntArr_A[Int_B]”, which is combination of an integer array variable “IntArr_A” and “Int_B” that specifies the element number, is assigned to S1.
|
2. |
“Int_D” which specifies the number of arrays is assigned to S2.
|
3. |
“IntArr_E[Int_C]”, which is combination of an integer array variable “IntArr_E” and “Int_C” that specified the element number, is assigned to D1.
|
|
 |
|
|
|
|