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.

Program Trace Routine<br />

CAPTUR<br />

Enters SNOOPY from ordinary program execution mode whenever control reaches<br />

any of a specified set of addresses. The instructions at the specified addresses are<br />

overlaid by a jump to a SNOOPY internal table area, where an SLJ TON$ is<br />

performed, followed by the overlaid instruction. The overlaid instruction may not be<br />

referenced as data by the program, but there are no other restrictions. The syntax of<br />

the command is CAPTUR loc-1,loc-2,..… Up to eight locations may be specified,<br />

separated by commas. Any existing list is replaced by the new list (with the overlaid<br />

instructions restored). If CAPTUR+ is used, the specifications are added to the<br />

existing table, again up to a total limit of eight. Use CAPTUR? to print out the<br />

contents of the table.<br />

When using this command with segmented or multibanked programs, take care that<br />

the specified capture locations are in main storage when they are changed. The<br />

locations must not reside in a read-only bank. The purpose of this command is to<br />

provide the fastest possible means of getting past a portion of the program that is<br />

irrelevant to the debugging task. The use of external symbols is subject to the<br />

restrictions noted for the ABSAD command. See CHANGE command for use of the<br />

symbol $.<br />

CHANGE (C)<br />

Allows the caller to change the contents of control registers or main storage. The<br />

single parameter specifies the location to be changed. After reading the location<br />

parameter, the contents of the specified location are displayed as if the location<br />

parameter had been given to a DUMP command; then the new value is solicited.<br />

The new value is stored and the new contents displayed. A void new value does not<br />

change the indicated main storage element.<br />

If the parameter is a register name, a number, or a number or register name<br />

preceded by an H or Q, the new value is to be entered as a single octal number.<br />

The CHANGE command allows the caller to use mnemonics and external symbols<br />

for I format (instruction format) changes, as well as octal values. The first item given<br />

to “NEW VAL--” may be an op-code mnemonic instead of an octal number for the<br />

f-field of the instruction. Abbreviated forms such as L, LN, ANM, etc. are not<br />

permitted; however, LX, LA, LR, LNA, ANMA, and so on must be used.<br />

For some instructions, the op-code mnemonic specifies values for the j-field and<br />

perhaps the a-field as well. In such cases, the next value given to the CHANGE<br />

command is an a-field or an x-field. Mnemonics may also be used for the<br />

j-designator values (W, H1, H2, XH1, XH2, T1, T2, T3, S1, S2, S3, S4, S5, S6, Q1, Q2,<br />

Q3, Q4,U, and XU) and for standard X, A, and R register names. If a register name is<br />

used in the a-field of an instruction, its value will be adjusted appropriately.<br />

Truncation errors are not detected.<br />

24–10 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!