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.

24.4. Demand Mode Operation<br />

Program Trace Routine<br />

The caller has a great deal of control over the behavior of SNOOPY in demand mode.<br />

SNOOPY examines the program control table (PCT) to compute storage limits and the<br />

contingency routine address.<br />

When SNOOPY traces a demand program, the amount of output that SNOOPY produces<br />

is reduced (relative to batch mode) because of the low-speed output devices. In<br />

particular, header and trailer messages are brief, registers are dumped only on request,<br />

and line length may be restricted. Further control over printing may be obtained by using<br />

commands described in 24.4.2.<br />

For demand programs, SNOOPY operates in two modes.<br />

• Trace mode, in which instructions are traced<br />

• Command mode, in which the caller uses commands that direct SNOOPY's<br />

operation<br />

SNOOPY enters command mode under these circumstances.<br />

• On entrance, before tracing any instructions, unless mode bit 16 was set<br />

• When the Remote Break (RBK) contingency occurs (@@X C)<br />

• On completing the number of instructions specified by a SKIP or a numeric<br />

command<br />

• When encountering a condition specified by the BREAK or TRAP command<br />

• When an instruction is executed at an address specified on a CAPTUR command<br />

• At trace termination, unless mode bit 16 was set<br />

In command mode, the prompt is “C--”. SNOOPY solicits required parameter fields by<br />

indicating the nature of the required parameter. More than one command can be<br />

entered on any line solicited in command mode (including parameter lines).<br />

Delimiters separate the commands and parameters. A delimiter is any character not in<br />

the set (A through Z, 0 through 9, $, or -). Excess blanks are ignored. If any other<br />

consecutive delimiters are encountered, the effect is the same as the STEP command.<br />

That is, if answering “C--” with a line consisting of “////”, it has the same effect as four<br />

STEP commands.<br />

In certain cases, specific delimiters are required. To omit a parameter entirely, follow the<br />

delimiter that terminated the command by another (nonblank) delimiter (for example,<br />

“PRINT/”). Trace mode is suspended, the last instruction is printed, and a soliciting<br />

message appears under the above six circumstances.<br />

7833 1733–004 24–5

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

Saved successfully!

Ooh no, something went wrong!