MOVE - Integer to Integer Examples


Example 1:

 

  

MOVE

INT1 TO INT2

 

 

Variable

PL

Contents

Before:

INT1

1

0x63

 

INT2

1

0x0

 

After:

INT1

1

0x63

 

INT2

1

0x63

 

No Condition Flag is set (all FALSE).

 

Example 2:

 

 

Variable

PL

Contents

Before:

INT1

1

0x0

 

INT2

2

0x4040

 

After:

INT1

1

0x0

 

INT2

2

0x0

 

The ZERO Condition Flag is set.

 

Example 3:

 

 

Variable

PL

Contents

Before:

INT1

2

0x4040

 

INT2

1

0x0

 

After:

INT1

2

0x4040

 

INT2

1

0x40

 

The OVER Condition Flag is set. Significant data was lost in the MOVE.

 

 



PL/B Language Reference MOVE - Integer to Character String Examples MOVE - Integer to Numeric Field Examples