HIBYT function

Purpose

Extract the most significant (high-order) byte from an Integer or Word value, and return it as an unsigned Byte value

HIBYT has been superceded by the HI function, although HIBYT remains supported for a limited period.  Existing code should be converted to the new syntax as soon as possible.

Syntax

bResult?  = HIBYT(sixteenbitvalue)

Remarks

The value returned by HIBYT is always unsigned, regardless of the sign of the argument.  Effectively, this function provides the same result as PEEKing at the second byte of the argument.  Thus, when HIBYT is used on a Long-integer or Double-word, the result is actually the high byte of the low Word of the value.

See also

HI, HIINT, HIWRD, LO, LOBYT, LOINT, LOWRD, MAKDWD, MAKINT, MAKLNG, MAKPTR, MAKWRD