Z390 has a TEST function, just like IBM does, although it works quite differently. To the user, the major difference is that in IBM, the test facility has to be linked into the program. In Z390, in effect, TEST starts and loads the program and executes it, allowing the user to specify break points, or list data, by actual load address.
QBREAK2 (and QBREAK) allows users to specify labels, and then the break (and list) commands are generated, using the .PRN listing. All of the break points can be set before execution starts. If there is a problem, the use can Quit and start over again, with all the break points set, with nothing more than a Quit and start command. To do this, the user must:
. Run QBREAK2, with the .PRN file and the control card file as input. QBREAK2 will create a file of break commands that Z390 can use.
. Run ez390 to start the test with TEST(DDNAME) specified, and DDNAME is the created file of break commands.
The QBREAK2 SYSIN file contains:
LOADLOC=80000 or FF000 or ??? program load address
BREAK=OPEN,CLOSE,etc whatever labels you want to stop at. You could add a label to your source, just to use here.
LIST=LINE,SAVEAREA,???
If your program has a getmain and a dsect, you can specify the register that contains the address of the dsect, and labels in the dsect. You can have more than one of these. If your dsect is addressed by different registers at different parts of the program, you must specify the label being used at the point the labels are wanted.
LOADLOC=8R%
LABEL=DLINE,DSAV, etc.
LOADLOC=11R%
LABEL=ELINE,EWHATEV
QBREAK2 can also generate break commands at op-codes (eg GETMAIN, TRT, or whatever). EG
LOADLOC=80000 ...
OPCODE=GETMAIN,FREEMAIN,TRT
The OPCODE= entries should (must) be at the end of the control cards.
A blank in col-1 means the card is a comment and is ignored.
The break and list commands look like:
A FE000.+00034. SAVE
A FE000.+00078. GETMA RR INST
A FE000.+000A4. MVI L 13R%+600. 37 <== list command for operand
A FE000.+0066A. MVI L 2R%+8R%+029. 37 <== list command with base and index regs
A FE000.+0091C. BUBBL BUBBL L 002. 37
L 13R%+00078. 121 LINE
L 13R%+00102. 61 ATLINE
L 8R%+00B00. 61 DLOADLOC
L 8R%+00027. 61 DSTRING