Keil Logo Arm Logo

2-Byte Scalars

Scalars of type signed int, unsigned int, signed short, unsigned short, enum, and memory-specific pointers that reference near, xdata or code are all stored using two bytes (16 bits). The high-order byte is stored first, followed by the low-order byte. For example, an integer value of 0x1234 is stored in memory as follows:

Address +0 +1
Contents 0x12 0x34

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.