ARCHITECTURE AND INSTRUCTIONS

RESERVED WORDS

CONSTANTS

Reserved words, look like identifiers, but they have a special meaning in the language, and you must not use them as identifier names (Fig. 2-14). The sample program uses reserved words like SEGMENT, MOV, EQU, and AL. Thus, it would be perfectly acceptable for us to make up a name like EQUAL as in:

EQUAL DB ?

Constants are fixed values appearing in ASM-86 programs. In the sample program there are constants 0, 3, and 100. These are whole-number constants. The assembly lan- guage also allows for string constants.

A whole-number constant is any non- fractional number between 0 and 65535 (2 16

-1). It is normally written as a decimal number, but can also be written in binary, ending with a B, octal, ending with a Q, or hexadecimal, ending with an H.

but it would be improper for us to write:

EQU DB ?

Refer to pg. 2-43, Fig. 2-14 for complete list of ASM-86 Reserved Words.

To avoid confusion with identifiers, a hexa- decimal constant must start with a numeric digit; a leading zero would suffice. Examples of whole-number constants are 15, 10 lOB, 27Q, 3AOH, and OBFA3H.

DELIMITERS

 

 

<

 

?

Delimiters are non-alphanumeric characters

 

 

>

+

[

that have special meaning in the 8088 assem-

 

 

bly language. In the sample program, we saw

(

 

 

*

]

such delimiters as : and ;. In this chapter we

 

 

 

 

 

 

 

will use many of the delimiters. For a com-

 

&

=

/

 

plete list of delimiters in ASM-86, see Fig.

 

 

 

 

 

2-13.

 

 

 

 

 

Figure 2-13. Delimiters in ASM-86

2-24

Page 59
Image 59
Intel 210200-002 manual Equal DB ?