18.08.2013 Views

Meta-Assembler (MASM) Programming Reference Manual

Meta-Assembler (MASM) Programming Reference Manual

Meta-Assembler (MASM) Programming Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MASM</strong> Usage<br />

2-16<br />

Example 4<br />

$EQU<br />

This is an invalid symbol if you try to insert it into the dictionary. It is a valid symbol if<br />

you are referring to the <strong>MASM</strong> directive $EQU.<br />

Example 5<br />

A/B<br />

This is an invalid symbol, but it is a valid expression.<br />

Example 6<br />

2.3.3. Fields<br />

AVERYLONGNAME<br />

This is a valid <strong>MASM</strong> symbol, but is the same as AVERYLONGNAM because <strong>MASM</strong><br />

accepts only 12 characters.<br />

The functional part of a <strong>MASM</strong> statement consists of the following fields:<br />

Label<br />

Operation<br />

Operand<br />

2.3.3.1. Label Field<br />

This field is optional and is used to introduce symbols into the dictionary. The label field<br />

can be divided into subfields. These subfields can be further divided into items. The<br />

following entries are allowed as items, in the order given:<br />

1. Page control<br />

The first item can be a slash (/) to indicate page eject.<br />

2. Line levelers<br />

The next item on the line can be a line leveler in the form %n, where n is an unsigned<br />

integer (see 6.9).<br />

3. Location counter specifications<br />

The leveler can be followed by a location counter specification in the form $(e),<br />

where e is an expression evaluated as an integer in the range of 0 to 63.<br />

7830 8269-001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!