Action
Makes a Long from 4 bytes
z% = MakeL4H( hi, byte2, byte1, lo)
z% = MakeL4L( lo, byte1, byte2, hi)
hi, lo:Byte
byte1, byte:Byte
z%:Integer
MakeL4H() creates a 32-bit integer value form four bytes. The first byte is placed in the high order byte of the long integer.
MakeL4L() creates a 32-bit integer value form four bytes. The first byte is placed in the low order byte of the long integer.
OpenW 1
Local p%, w%, x%, y%, z%
x% = 10, y% = 20, w% = 150
z% = MakeL4H(1, 2, 3, 4) // 01020304
p% = MakeL4L(1, 2, 3, 4) // 04030201
Print Hex(z%, 8)
Print Hex(p%, 8)
MakeL2L(), MakeL2H(), MakeL3H(), MakeL3L(), MakeLarge(), MakeLargeHiLo(), MakeLargeLoHi(), MakeLong(), MakeLongHiLo(), MakeLongLoHi(), MakeWord(), MakeWordHiLo(), MakeWordLoHi(), MakeWParam()
{Created by Sjouke Hamstra; Last updated: 12/10/2014 by James Gaite}