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

Create successful ePaper yourself

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

ALTPRT (PRT)<br />

Program Trace Routine<br />

Sends all trace printout to an alternate print file while command solicitation,<br />

command responses (as for DUMP, for example), and all program print requests are<br />

sent to the terminal as usual. One parameter may be entered that is the name of<br />

the file to be used as an alternate print file. If the file specified is not assigned,<br />

SNOOPY automatically assigns a temporary file. (If the file will be printed by the<br />

@SYM statement, it must be assigned as cataloged rather than temporary.) If the<br />

program traced uses alternate symbiont files, the restrictions on the maximum<br />

number of alternate files that are allowed open must be followed.<br />

The ALTPRT command gives control of the alternate print files. In general, the<br />

ALTPRT command uses an alternate file and the current alternate file is breakpointed<br />

(@BRKPT). This action may be suppressed by using an asterisk (*) as the trailing<br />

delimiter for the parameter (for example, either “ALTPRTfilename*” or<br />

“ALTPRT *”).<br />

To obtain printouts both at a terminal and in an alternate file, the ALTPRT filename<br />

should have a trailing exclamation point (!), (for example, “ALTPRTfilename!”). This<br />

is useful for obtaining a permanent record when working at a terminal that lacks a<br />

hard-copy capability. If an alternate file is already active, the command forms<br />

“ALTPRT !” and “ALTPRT ?” may be used to set and clear echo mode while leaving<br />

the same alternate file in use. Echo mode is always cleared when the trailing<br />

exclamation point is not used. Therefore, to start a new alternate file without<br />

breakpointing the old file and with echo mode set, use the command sequence<br />

“ALTPRT* ALTPRTfilename!”.<br />

If the parameter is omitted (as in “ALTPRT/”), printing is directed to the terminal as it<br />

is initially. This command is effective for all SNOOPY operations until another<br />

ALTPRT command is given or the program being traced terminates. This command<br />

forces the location counter element name printout to be given so that each piece of<br />

printout may be easily identified.<br />

BREAK<br />

The BREAK loc-1, loc-2,... command indicates a stopping point for SNOOPY when<br />

operating in trace mode. When any specified address is reached, the trace stops<br />

and SNOOPY enters command mode. This command is useful for running with<br />

printing turned off. Use the form BREAK+ to add entries to the existing table. A<br />

maximum of 16 addresses is permitted. Use the $ specification to retrieve the last<br />

address returned by the ABSAD command. The form BREAK? lists the table of<br />

break addresses. The command BREAK may be abbreviated to just the letter B.<br />

This form of the BREAK command is incompatible with the previous form. The<br />

change is made for reasons of efficiency and utility; the break on element name or<br />

location counter was seldom used but introduced considerable overhead for each<br />

instruction traced, while it was impossible to have more than one break active at the<br />

same time. Determine which form of the BREAK command is available in SNOOPY<br />

by entering the BREAK command without parameters on the same line (or a “/” to<br />

indicate no parameters). The old form of BREAK solicits input with “ELT NAME--”,<br />

whereas the new form requests input with “LOCN--”.<br />

7833 1733–004 24–9

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

Saved successfully!

Ooh no, something went wrong!