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

 Syntax
   func byte lobyte extern
   param value uint uNum

 Arguments
   uNum is the number to process.

 Return
   Low byte of passed number.

 Description
   The lobyte() function returns the low byte of an uint number.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_lobyte
   ? lobyte( 0 )                    // print    0
   ? lobyte( 1 )                    // print    1
   ? lobyte( 2 )                    // print    2
   ? lobyte( 127 )                  // print  127
   ? lobyte( 128 )                  // print -128
   ? lobyte( 255 )                  // print   -1
   ? lobyte( 256 )                  // print    0
   ? lobyte( 257 )                  // print    1
   ? dechex( lobyte( 0xffffaabb ) ) // print    0x000000BB
   endproc

   proc main
   Test_lobyte()
   endproc

See Also: hibyte()

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