18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Program Trace Routine<br />

Tracing can be terminated in batch or demand mode with the following methods:<br />

• Use the TOFF$ command (see 24.4.2). Program execution continues.<br />

• Use the EXIT$ command (see 24.4.2)<br />

24.3. Symbol Tables<br />

When using SNOOPY, the u-field of the instruction is edited in octal if it does not refer to<br />

control storage.<br />

The calling program can provide a symbol table to SNOOPY using Fieldata characters<br />

instead of octal values when the u-field falls within the address range of the program<br />

being traced. To do this, store a value in the externally defined location SYMTB$.<br />

SNOOPY uses the symbol table while tracing a program. The value stored in SYMTB$<br />

has the following form:<br />

0 17 18 35<br />

nbr-of-entries table-addr<br />

H1 H2<br />

The symbol table at the specified address is an array of three-word entries in the form:<br />

0 high +1 low<br />

1 Fieldata symbol name or address of long name<br />

2 bits symbol address<br />

H1 H2<br />

If the rightmost bit of bits (bit 17) is set, SNOOPY assumes word 1 of the entry is the<br />

address of a 7- to 12-character Fieldata symbol instead of a 1- to 6-character Fieldata<br />

symbol. This accommodates long labels.<br />

The next word after the last entry may be another symbolic table descriptor word. This<br />

occurs if bit 1 is set in the last entry of the symbol table. SNOOPY searches the symbol<br />

table to which it points in the same fashion. This may be repeated to any level desired.<br />

However, circularity must be avoided (in other words, pointing to the address of a<br />

higher-level symbol table).<br />

If the u-field of an instruction is between the low- and high-address values, edit the<br />

u-field as the symbol given by the second word of the entry, plus or minus an offset<br />

calculated from the symbol address in the third word. If the nbr-of-entries parameter of<br />

SYMTB$ is zero as it is initially, all u-fields outside control storage are edited in octal<br />

except TOFF$ and a number of ER indexes.<br />

24–4 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!