Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> move mass memory move pp 136</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MOVE                          Mass Memory Move                       pp 136

 Syntax:  Move (From, To, Count) ;

 Type:    All

 Form:    Procedure

 Purpose: Does a mass move directly in memory from Var1 to Var2 of Count
          bytes.

 Notes:   Move automatically handles any overlap between Var1 and Var2.
          The {R+} directive will not catch an overflow condition.


 ----------------------------------------------------------------------------


 Usage:
       CONST
          Count  :  Integer = 50         ;   { Byte count to move          }
       VAR
          Var1   :  String [50]          ;   { Short string                }
          Var2   :  String [80]          ;   { Long string                 }

       BEGIN
          Move (Var1, Var2, Count)       ;   { This moves without overflow }
          Move (Var2, Var1, 80)          ;   { This move will overflow     }
          Move (Var1, Var2, sizeof(Var1));   { This will move safely       }
       END.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson