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.

24.1. Calling Sequence<br />

There are two formats available for calling SNOOPY.<br />

Format 1<br />

SLJ SNOOPY$<br />

+ mode-bits,termination-addr . mode-word<br />

where:<br />

mode-bits (bits 0 through 17 where bit 0 is the leftmost bit)<br />

Program Trace Routine<br />

Bit 17 controls quarter-word mode sensitivity. If bit 17 of the mode word is set,<br />

SNOOPY simulates quarter-word mode for checkout of quarter-word sensitive<br />

programs on machines without quarter-word hardware. If bit 17 is clear,<br />

SNOOPY uses either third- or quarter-word mode, depending on the mode set in<br />

the Processor State Register (PSR) on entry. If bit 18 is set, the mode word<br />

suppresses the solicitation of commands at the beginning and end of a trace<br />

when using SNOOPY in demand mode.<br />

termination-addr (bits 18 through 35)<br />

Format 2<br />

Tracing begins with the instruction following the mode word. Tracing continues<br />

until the termination address (termination-addr) is reached or until another<br />

termination condition is encountered.<br />

SLJ TON$<br />

Tracing begins following the SLJ instruction and continues until it encounters a<br />

termination condition. The quarter-word mode sensitivity is unchanged with this<br />

format.<br />

24.2. Terminating Trace<br />

Tracing is terminated in batch mode by any of the following:<br />

• Reaching the specified termination address. Program execution continues.<br />

• Using the SLJ TOFF$ instruction (program execution continues). If an SLJ TOFF$<br />

instruction is executed outside of the trace routine, it has no effect.<br />

• Using the ER EXIT$ instruction (see the Exec ER <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong>).<br />

This not only terminates SNOOPY, but it also terminates the activity being traced.<br />

• Encountering a program contingency of types 1, 2, 7, or 12 for which standard<br />

system action has been specified. The activity being traced is terminated by EXIT$.<br />

7833 1733–004 24–3

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

Saved successfully!

Ooh no, something went wrong!