Keil™, An ARM® Company

C166 User's Guide

2-byte Scalars

Scalars of type signed int, unsigned int, signed short, unsigned short, and enum are stored using two bytes (16 bits). The bytes are stored little endian or low to high order. For example, the integer value 0x1234 is stored in memory as follows:

 Address+0Address+1
Contents0x340x12