Programming 2-9

nString—A contiguous sequence of bytes or words. A string can contain from 1 byte up to 64 Kbyte.nPointer—A 16-bit or 32-bit quantity, composed of a 16-bit offset component or a 16-bit segment base component plus a 16-bit offset component.In general, individual data elements must fit within defined segment limits. Figure 2-5 graphically represents the data types supported by the Am186ER and Am188ER microcontrollers.

Figure 2-5 Supported Data Types

7 0
Signed
Byte
Magnitude
Magnitude
7 0
MSB
Unsigned
Byte
Signed
Word
Magnitude
MSB
+1 0
Magnitude
MSB
+3 +2 +1 0
Signed
Quad
Word
Magnitude
MSB
63 48 47 32 31 1615 0
Unsigned
Word
Magnitude
MSB
+1 0
7 0 7 0 7 0
+N +1 0
. . .
7 0 7 0 7 0
+N +1 0
. . .
7 0 7 0 7 0
+N +1 0
. . .
Binary
Coded
Decimal
(BCD) BCD
Digit N BCD
Digit 1 BCD
Digit 0
ASCII
CharacterNASCII
Character1
ASCII
Character0
ASCII
Most Significant
Digit Least
Significant Digit
Packed
BCD
7 0 7 0
+N +1 0
. . .
Byte/WordN Byte/Word1 Byte/Word0
String
+3 +2 +1 0
Segment Base Offse t
Pointer
31 1615 0
015
+3 +2 +1+6 +5 +4 +0+7
1514 87 0
70
Signed
Double
Word
Sign Bit
Sign Bit
Sign Bit
Sign Bit