• Keine Ergebnisse gefunden

Appendix D - Assembler operation

Im Dokument mitra 15 (Seite 197-200)

1- ASSEMBLY LISTING

1-1. FORMAT OF AN ASSEMBLY LISTING LINE

The general line format of an assembly listing is illustrated below.

A line contains the following informations:

- Up to two error flags.

- A decimal line number.

- The current hexadecimal contents of the location counter.

- The object code (hexadecimal) generated by the Assembler.

- A indication of a forward reference if the,argument address is anticipated.

- The source line image.

The lines which are skipped under control of a GOTO are not annotated except when they contain an invalid operation code.

4

I

9 L

14

I

20

72

E E D D D D * L L L L * X X X X A * * S S S •••••••••• S S S

*

EE DODD LLLL

A 55 .• 55

Space Error flags

Decimal number of source line

Hexadecimal value of location counter

Hexadecimal value of a word or byte generated at LLLL location W hen present, the reference is forward

Source text line

Format of an assembly listing line

1-2. OBJECT L1STlN G

In addition to the hexadecima I representation of the object code and the edition of the corresponding source text, the Assembler provides:

- A list of defined and/or referenced segments names, except under MITRAS I.

- A table of satisfied or unsatisfied labels per section (optiona I).

1-2. OBJECT LISTING

In addition to the hexadecimal representation of the object code and the edition of the corresponding source text, the Assembler provides:

- A list of defined and/or referenced segments names, except under MITRAS I.

- A table of satisfied or unsatisfied labels per section (optional).

II - 0 P E RA TI N GOP T ION S 11-1 • MITRA S I

• Command format

O/OASS l/options indicated on console switches (M:OC) .

• Options Assembly listing - req uested - omitted

console switch 15 reset console switch 15 set Relocatable binary:

- requested - omitted

console switch 14 reset : console switch 14 set

Output of an additional O/OEOD after the RB module:

- requested console switch 13 reset - omitted : console switch 13 set

11-2. MITRAS II

• Command format

~

O/OASS2

t

/[SI] [,BO] [,LO]

[,LL]

~

%CALL/ASS2

~

::O/oASS2/ Output on M:OC by the processor when loaded and started by %LOAD and O/ORUN.

%CALL/ASS2/ Output on M:OC by the processor when started without console interrupt. In this case, options are given on M:OC.

• Options - SI

- BO - LO - LL

D-2

Under control of the linking module, the command and its options are entered via M:CI .

Source file read on M:SI. When this option is omitted, no other option should be present, and all options are implicit.

Rei oca ta ble bi nary output req uested.

Assembly listing output requested.

Label table printing requested, together with severity level and number of incorrect lines.

4057 U

• Option for assembly end

When MITRAS II is loaded and started through a %LOAD and a %RUN, before returning to the beginning when the assembly is over, the following message is printed on M:OC :

%%EOD?

Meaning that the optional output of an additional "end-of-file" mark after the RB has been allocated.

The operator's answer on M:OC may be :

- OUI if the additional "end-of-file" mark is requested.

- NON if the additional "end-of-file" mark is not requested •

• Additiona I "end-of-fi Ie"

When a program module has been assembled, the relocatable binary output may have one of the following format:

E E

Heading File 0 or Heading File 0

F F

- where E.O.F. stands for "end-of-file".

This is necessary for establishing the RB input fi Ie of the Linkage Editor. This fi Ie is organized as follows:

E E

Heading 1 File 1 0 Heading 2 Fi Ie 2 0

F F

E E Heading n File n 0 0 F F The Linkage Editor may then output a RMI file with the following format:

E E Headi ng File 0 0 F F

111-2. TABLE FORMAT I I 1-2.1 . Loca I label table

A table containing the loca I labels is printed after every LPS, before FIN pseudo-instruction. It has the following format:

LABE LLLL Z - LABE - LLLL - Z

Label name.

Corresponding value of location counter or label reference number if it has not yet defined.

D LDS label P = LPS label A

X

Label value is absolute Label not yet defined

R = Label declared in a REF pseudo-instruction

111-2.2. Common label table

When the module assembly is completed, after EN D pseudo-instruction, a table of common labels is printed.

It has the following format:

LA BE LLLL Z

- LABE Label name

- LLLL Corresponding value of location counter or label reference number if it has not yet been defined.

Z C = CDS label

D = LDS label (declared in a DEF of the CDS and defined in a LDS).

P LPS label (declared in a DEF of the CDS and defined in aLPS).

A = Label value is absolute X La be I not yet defi ned R Label declared in a REF 111-2.3. Severity level

After the common label table, MITRAS I outputs the following message

NSV

o

2 3

NB ERR XXX

Indicating the highest error level encountered during assembly and the number of incorrect lines.

111-3. ERROR PROCESSIN G

111-3.1. Definition of assy error level Four error levels will be considered:

- LEVEL 0 - LEVEL 1 - LEVEL 2

- LEVEL 3

No error or presumed error during assembly.

At least one presumed error. Linkage edition and program execution are possible.

Confirmed error for which the assembler has selected an option. Link edition is possible, but the edited program cannot be correctly executed in most cases without %MODIFY cards.

Major error. The assembly continues but linkage edition will be impossible. The so~rce program must be corrected and re-assembled.

As a genera I rule, any level-3 error impedes link edition.

111-3.2. List of errors detected during assembly

The incorrect source line is printed with 1 or 2 leading characters which identify the type of error.

Two error flags are set, at most.

D Double definition of a label. The first definition is assumed right.

E Syntacti c or semantic error in operand field of an instruction or pseudo-instruction.

- For an instruction, the operand is ignored, the corresponding zone being cleared.

- For a segmentation pseudo, the operand field of the source card is ignored.

D-4

Im Dokument mitra 15 (Seite 197-200)