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> hi exchange lo and hi bytes of word pp 143</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 HI                    Exchange Lo and Hi Bytes of Word               pp 143

 Syntax:  Hi (IntVar) ;

 Type:    Integer

 Form:    Function

 Purpose: Hi order byte of argument becomes lo order byte of result.
          The hi order byte of result is zero.  The result is type Integer.

 Usage:
       VAR
          IntVar : Integer      ;        { Integer argument value       }
          Result : Integer      ;        { Integer result               }

       BEGIN
          IntVar := $F000       ;        { Set the hi order of argument }
          Result := Hi (IntVar) ;        { Result = $000F               }
       END.

See Also: Lo MsDos Swap

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