Scalars of type int, scalars of type short, enum types, and typed pointers that reference xdata or code are all stored using 2 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 |