MAKEWORD function
Creates a WORD value by concatenating the specified values.
Implementation
//
// #define MAKEWORD(a, b) ((WORD)(((BYTE)(((DWORD_PTR)(a)) & 0xff)) |
// ((WORD)((BYTE)(((DWORD_PTR)(b)) & 0xff))) << 8))
int MAKEWORD(int a, int b) => a & 0xff | ((b & 0xff) << 8);