HiLMAs reference
Back

Variable assignment and arrays

Next

PTR2PTR

   PTR2PTR address1,address2,length

 

Description

The value pointed by address1 is put in variable pointed by address2; variable length is mandatory and contain the number of bytes moved.
Pay attention to the use of this statement because no control is done at compile time to the number of moved bytes or to the length of output variable: it is very easy to cover unwanted variables without any message in the moment in which this statement is used.
Also, if address2 is not correct, the program can abend with an ADRESSING EXCEPTION; address1 and address2 should be filled using ADDR instruction.

 

Parameter specifications

Parameter Name Mode Type coding Remark
1 address1 Input Integer A or F  
2 address2 Input Integer A or F  
3 length Input Integer F or H or const.  

 

Examples

 


Back Start Next
PTR2VAR Top LET