createWord function

int createWord(
  1. int lowByte,
  2. int highByte
)

Convert two bytes into a 16-bit word.

Implementation

int createWord(int lowByte, int highByte) => (highByte << 8) + lowByte;