Defining WORD and SWORD Data Defining WORD and SWORD Data
• Define storage for 16-bit integers
• or double characters
• single value or multiple values
word1 WORD 65535 ; largest unsigned valueword2 SWORD –32768; smallest signed valueword3 WORD ?; uninitialized, unsignedword4 WORD "AB"; double characters
myList WORD 1,2,3,4,5; array of words
Value Offset
0000: 1
0002: 2
0004: 3
0006: 4
0008: 5
(34)
Defining DWORD and SDWORD Data Defining DWORD and SDWORD Data
val1 DWORD 12345678h ; unsignedval2 SDWORD –2147483648 ; signed
Storage definitions for signed and unsigned 32-bit
integers:
(35)
Defining QWORD, TBYTE, Real Data Defining QWORD, TBYTE, Real Data
quad1 QWORD 1234567812345678h
val1 TBYTE 1000000000123456789AhrVal1 REAL4 -2.1
rVal2 REAL8 3.2E-260rVal3 REAL10 4.6E+4096
ShortArray REAL4 20 DUP(0.0)
Storage definitions for quadwords, tenbyte values,
and real numbers:
(36)
Little
Little Endian Endian Order Order
• All data types larger than a byte store their individual bytes in reverse order. The least significant byte occurs at the first (lowest) memory address.