Returns the high or low byte of an expression.
a| = HiByte(x%)
a| = LoByte(x%)
a|:8 bits integer
x%:16/32/64 bits integer expression
Debug.Show
Local a As Short
a = MakeWord(15, 155)
Trace HiByte(a) // to read bit 8-15
Trace GetGValue(a) // the same with GetGValue
Trace GetByte2(a) // the same with GetByte2
Trace TypeName(HiByte(a))
Debug.Print
Trace LoByte(a) // to read bit 8-15
Trace GetRValue(a) // the same with GetGValue
Trace GetByte3(a) // the same with GetByte2
Trace TypeName(LoByte(a))
a| = HiByte(x&) is identical to a| = GetGValue(x%) and a| = GetByte2(x%), while a| = LoByte(x&) is identical to a| = GetRValue(x%) and a| = GetByte3(x%)
a| = HiByte(x%) is identical to a| = Byte(Shr(x%,8)) and a| = LoByte(x%) is the same as a| = Byte(x%), but the second expressions are compatible with the MS-DOS version of GFA-BASIC.
GetByte2, HiCard(), HiWord(), HiLarge(), LoCard(), LoWord(), LoLarge()
{Created by Sjouke Hamstra; Last updated: 09/10/2014 by James Gaite}