31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

USING <strong>PASCAL</strong> ON <strong>TOPS</strong>-<strong>20</strong><br />

• Statement level CD The] isting specifies a statement<br />

level for each line of source code after the first BEGIN<br />

delimiter. The statement level starts at a and increases by<br />

1 for each nesting level of <strong>PASCAL</strong> structured statements.<br />

Specifically, the CASE statement, the REPEAT statement, Rnd<br />

the BEGIN/END block increase the statement level. The<br />

statement level of a comment is the same as that of the<br />

statement that follows it.<br />

ERRORS and WARNINGS -- The source-code listing includes information on<br />

any errors or warnings detected by the compiler. The actual message<br />

is printed beneath the error in the source code. In addition, the<br />

following items appear in the listing:<br />

• A circumflex (A) that points to the character position in the<br />

line where the error was detected t)<br />

• A numeric code, following the circumflex, that specifies the<br />

particular error G). On the following lines of the source<br />

listing, the compiler prints the text that corresponds to<br />

each numeric code G)<br />

•<br />

The line number 'where the error was detected CD and the<br />

line number of the previous line containing an error G<br />

You can use these error line numbers to trace the error<br />

diagnostics back through the source listing.<br />

SUMMARY -- At the end of the source listing, the compiler tells you<br />

how many errors or warnings were generated (if any), with the source<br />

line number where the last one occurred CD. The compiler prints the<br />

status of all the compilation optjons CD and how much time was<br />

required for the compilation G)<br />

8.4.6.2 Machine-Code Listing - The machine-code listing (if requested<br />

with the /MACHINE-CODE switch) follows the source-code listing. The<br />

machine-code listing contains:<br />

• Source line number CD - A source line number marks the<br />

first object instruction that the compiler generated for the<br />

first <strong>PASCAL</strong> statement on that source line.<br />

• Octal representation of instruction _ This is the octal<br />

representation of the object instruction.<br />

• Address fa This is the relocatable address of the<br />

instruction.<br />

• Opcode fa This is the mnemonic operation code for the<br />

instruction.<br />

• Operand G - This contains the mnemonic accumulator field<br />

and address field for the operation.<br />

For more information on machine-code instructions, refer to the<br />

DECsystem-lO /DECS,xSTEM-<strong>20</strong>. Processor Reference Manua 1.<br />

8-15

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

Saved successfully!

Ooh no, something went wrong!