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.3. Input<br />

2-14<br />

This section defines the <strong>MASM</strong> input format, requirements, and rules.<br />

2.3.1. Statements<br />

<strong>MASM</strong> processes the input presented to it by statements, where a statement is one or<br />

more lines of input text and a line is an 80-character image. A statement has the<br />

following parts:<br />

The functional part that is interpreted by <strong>MASM</strong><br />

The comment part that provides additional information to the reader (see 2.3.3.4)<br />

The functional part of a statement has the following fields:<br />

Label field (see 2.3.3.1)<br />

Operation field (see 2.3.3.2)<br />

Operand field (see 2.3.3.3)<br />

Each field can contain subfields. All of the fields and subfields following the label field<br />

are in free form. The label field must begin in column 1 of the symbolic line. Any or all<br />

of the fields can be void. Fields are generally bounded by one or more spaces; subfields<br />

are bounded by commas.<br />

<strong>MASM</strong> completes the interpretation of the functional part of a line when it encounters<br />

one of the following:<br />

The maximum number of fields and subfields required by the operation<br />

The 80th character<br />

The line terminator space-period-space ( . )<br />

A line continuation character ( ; ) that is not included in a string enclosed in<br />

quotation marks<br />

Example 1<br />

PF $FORM 12,6,18 . FORM DEFINITION<br />

This example uses all four fields. PF is the label; FORM is the operation field; 12,6,18 are<br />

three subfields in the operand field; characters to the right of the period make up the<br />

comment.<br />

7830 8269-001

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

Saved successfully!

Ooh no, something went wrong!