Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - hiword() return the high word of an ulong number http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 hiword()            Return the high word of an ulong number
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func uint hiword extern
   param value ulong nNum

 Arguments
   nNum is the number to process.

 Return
   High word of passed number.

 Description
   The hiword() function returns the high word of an ulong number.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_hiword
   ? hiword(     0 )                 // print 0
   ? hiword( 65535 )                 // print 0
   ? hiword( 65536 )                 // print 1
   ? hiword(    -1 )                 // print 65535
   ? dechex( hiword( 0xaaaabbbb ) )  // print 0x0000AAAA
   endproc

   proc main
   Test_hiword()
   endproc

See Also: loword()

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