JOB READ-PUNCH 1070B ctl 6611 * * Stuff in the preamble -- not in one-field-per-card format * org 333 * * Set up for one-field-per-card format and begin loading * 333start sw 8,12 340reload sw 1 344 r 1 * * Look for next program -- A in column 80 * 348nxprog r 349tptest bce *&5,80,a 357 b repeat 361rel1 cs reload,80 368 dcw #1 * tapes1 equ 1268 blank indicates the tape loader s2 equ 1262 s3 equ 1263 taperd equ 1288 tape read routine? tapes2 equ 1398 GM indicates the tape loader * org 377 377tptst2 bce tests3,s2,1 385btaprd bin taperd, org 393 393tapmod mcw btaprd&3,tptst2&3 400begin cs 332 START TEST 404 cs 405 bce titlpr,titlsw,1 BR TO TITLE PRINT ROUTINE IF 1 IN S52 413 bin cont, org 420 420cont cs 80 CLEAR READ AREA 424 sw 1 SET WM IN READ AREA 428 r READ 429repeat lca 80,180 LOAD PUNCH AREA 436 bwz rpb,1,2 BRANCH IF NO ZONE IN 001 444scope1 rp READ-PUNCH 445 bss scope1,B B ON TO SCOPE 450 b loop BRANCH TO MODIFY CHAIN. ROUTINE 454rpb rp btest READ-PUNCH AND BRANCH 458 h ERROR STOP IF NO BRANCH 459btest bss rpb,B B ON TO SCOPE 464loop bss cont,D D ON TO REPEAT TEST 469 bce lctest,nxprog,B Program loaded from tape? 477 bce rel1,80,A Chain from cards? 485lctest blc nocard 490 b repeat 494tests3 bce tapmod,s3,1 502 b nxprog Read detail or chain next program 506nxdetl cs 180 510 cs 80 514 sw 1 518 b nxprog 522nocard lca 80,180 529 p nxdetl 533 dcw #1 * * Title print routine. Notice that in the original format, * the title and ID are in CC 49-77 of the last card -- the one * that transfers control to the program. * titlsw equ 1252 1 to use title print routine hdrs equ 1120 All programs put headers in 1120-1199 titlex equ 413 All routines must return here after title * org 1200 1200titlpr w Print (space). 1201 sw 49 Set WM for Title and Block No. 1205 lca 77,277 Load Title and Block No. in Print Area. 1212 w Print Title and Block No. 1213 cs 277 Clear Print Area 1217 w cont Print (space). 1221 dcw #1 end start