MOVEADDR Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contents |
|
|
|
|
|
|
A |
|
|
|
|
|
|
N/A |
|
| |||||
|
|
|
|
|
|
A |
|
|
|
|
|
|
Address of DIM1 |
After this instruction was executed, any further PL/B instructions that referenced PTRDIM would perform as if they were referencing DIM1. Thus if we MOVEd 'A' to PTRDIM or DIM1, the result would be the same.
Example 2:
|
|
|
|
|
|
|
|
|
|
|
|
Address of DIM1 |
|
|
|
N/A |
|
| ||
|
|
|
Address of DIM1 |
|
|
|
Address of PTRDIM |
Thus, any further PL/B instructions that referenced PTRDIM or PTRDIM2 would perform as if they were referencing DIM1. Thus if we MOVEd 'A' to PTRDIM, PTRDIM2 or DIM1, the result would be the same.
Example 3:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
•••43 |
|
|
|
|
N/A |
|
| |||
|
|
|
|
•••43 |
|
|
|
|
Address of FORM1 |
Thus, any further PL/B instructions that referenced PTRFORM would perform as if they were referencing FORM1. Thus if we MOVEd '123' to PTRFORM or FORM1, the result would be the same.
Example 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0x135 |
|
|
|
|
N/A |
|
| |||
|
|
|
|
0x135 |
|
|
|
|
Address of INT1 |
Thus, any further PL/B instructions that referenced PTRINT would perform as if they were referencing INT1. Thus if we MOVEd '256' to PTRINT or INT1, the result would be the same.
Example 5:
|
|
|
|
|
|
|
|
|
|
|
|
N/A |
|
|
|
N/A |
|
| ||
|
|
|
N/A |
|
|
|
Address of VARLISTX |
After this instruction was executed, any further PL/B instructions that referenced PTRVAR would perform as if they were referencing the variables defined in VARLISTX. Thus, if we UNPACKed a 'null' variable into PTRVAR or VARLISTX, the result would be the same.
Example 6:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
After this instruction was executed, any further PL/B instructions that referenced BUTTON1P would perform as if they were referencing the object BUTTON1.
![]() |