MOVE - Integer to Integer


 

This MOVE instruction transfers the contents of the source integer variable into the destination integer variable. The instruction uses the following format:

 

 

[label]

MOVE

{source}{sep}{dest}

 

Where:

label

Optional. A Program Execution Label.

source

Required. An INTEGER variable that serves as the source operand.

sep

Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.

dest

Required. An INTEGER variable that serves as the destination operand.

Flags Affected: EOS, LESS, OVER, ZERO

Note the following:

  1. See Note 2 under MOVE - Character String to Integer for information regarding storage of INTEGER variables on various systems.

  2. If {source} contains a value greater than {dest} is capable of holding, the high order bytes are lost and the OVER Condition Flag is set. {source} remains unchanged

  3. If {source} is equal to 0 (or uninitialized), {dest} equals 0 (all bytes set to 0x0).

  4. The ZERO, LESS, and OVER Condition Flags are applicable as in MOVE - Numeric to Numeric.

 

 

See Also: Example Code, MOVE

 



PL/B Language Reference MOVE - Integer to Numeric Field MOVE - Arithmetic Expression to Numeric Field