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-20<br />

Example 1<br />

$RES 5<br />

The operation field consists of one subfield ($RES) and is a valid <strong>MASM</strong> directive.<br />

Example 2<br />

A $EQU 2<br />

The operation field consists of one subfield ($EQU) and is a valid <strong>MASM</strong> directive.<br />

Example 3<br />

APROC,1,2<br />

The operation field consists of three subfields. Subfield 1 is a user-defined procedure.<br />

Subfields 2 and 3 are objects which the procedure can refer to.<br />

Example 4<br />

LA,U<br />

The operation field consists of two subfields. Subfield 1 may be an instruction<br />

mnemonic. Subfield 2 is operand information to be used when generating the<br />

instruction.<br />

Example 5<br />

+ 14<br />

The operation field is void.<br />

2.3.3.3. Operand Field<br />

The operand field of a <strong>MASM</strong> statement can contain multiple fields. It is part of the<br />

functional portion of a <strong>MASM</strong> statement.<br />

The operand begins with the first nonblank character after the operation field (or label<br />

field if the operation field is a void) and continues until the end of the functional portion<br />

of the statement. The operand can consist of more than one field, or it can be a void.<br />

7830 8269-001

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

Saved successfully!

Ooh no, something went wrong!