
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 176 -
6.4 PMC ADDRESS READING/WRITING (G310)
PMC address writing
- Format
G310 Dd Qq Ll ;
G310 Rr
Qq Ll ;
G310 Cc Qq Ll ;
G310 Kk Qq Ll ;
G310 Tt
Qq Ll ;
D : PMC address D
R : PMC address R
C : PMC address C
K : PMC address K
T : PMC address T
Q : Data to be written
L:Data size
The data specified for address Q is written to PMC addresses D, R, C,
K, and T, with the size specified for address L. The data specified for
address Q is rounded off to the nearest integer value, as required, and
converted into binary format before being written.
If the data is a negative numeric value, it is converted to a two's
complement.
If the data to be written is more than a word, the lowest byte is written
to the lowest address, the second lowest byte to the second lowest
address, and so on.
Example
#100 = -500.0 ;
G310 D300 Q#100 L4 ;
When the above program is executed, the following
data is written to the PMC data area (D300 to
D303).
Bit 76543210
D300
D301
D302
D303
0
1
1
1
0
1
1
1
0
1
1
1
0
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
0
0
1
1
The two's complement of the decimal number -500.0 is FFFFFE0Ch.