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 - loword() return the low word of a ulong number http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 loword()            Return the low word of a ulong number
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func uint loword extern
   param value ulong nNum

 Arguments
   nNum is the number to process.

 Return
   Low word of passed number.

 Description
   The loword() function returns the low word of an ulong number.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_loword
   ? loword(     0 )                 // print     0
   ? loword(   123 )                 // print   123
   ? loword( 65535 )                 // print 65535
   ? loword( 65536 )                 // print     0
   ? loword(    -1 )                 // print 65535
   ? dechex( loword( 0xaaaabbbb ) )  // print 0x0000BBBB
   endproc

   proc main
   Test_loword()
   endproc

See Also: hiword()

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