MAKEWORD

The MAKEWORD macro creates an unsigned 16-bit integer by concatenating two given unsigned character values.

WORD MAKEWORD(

BYTE bLow, // low-order byte of short value
BYTE bHigh // high-order byte of short value
);  

Parameters

bLow

Specifies the low-order byte of the new short value.

bHigh

Specifies the high-order byte of the new short value.

Return Values

The return value is an unsigned 16-bit integer value.

Remarks

The MAKEWORD macro is defined as follows:

#define MAKEWORD(a, b) \

((WORD) (((BYTE) (a)) | ((WORD) ((BYTE) (b))) << 8))