Added endian definition, and REG_16 macro, so we don't have to rebuild every 16-bit register if the endianness of the target platform needs to change.