|  | | 408 | 281 | 2200152377777 |  | inc | PatchLP | / | sto | -1 | ;add to patch list |  | 
| 409 | 282 | 1100226 |  | jmp | .1 |  |  |  | ; | @282 | 
| 410 | 282+ |  | ; |  | 
| 411 | 282+ |  | ; type 1 entry, small instruction, 6 bits opcode, 5 bits address, 3 bit reloc |  | 
| 412 | 282+ |  | ; |  | 
| 413 | 282+ |  | .sw1: | ; |  |  | 
| 414 | 282+ | 0600076 |  | lod | K11a |  |  |  | ;=11 | @282+ | 
| 415 | 283 |  |  | call |  |  |  |  | ;get combined opcode/address |  | 
| 415+1 | 283 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 416 | 284 | 0400045 |  | sto | LodWk4 |  |  |  | ;temp save |  | 
| 417 | 284+ | 0060077 |  | and | K31a |  |  |  | ;=31, mask out address |  | 
| 418 | 285 | 0360045 |  | o17 | LodWk4 |  |  |  | ;store address, load opcode |  | 
| 419 | 285+ | 1320010 |  | sll | 8 |  |  |  | ;align |  | 
| 420 | 286 | 0500045 |  | ads | LodWk4 |  |  |  | ;add to address |  | 
| 421 | 286+ | 0600060 |  | lod | K3b |  |  |  | ;size of reloc |  | 
| 422 | 287 | 1000405 |  | jmp | .7 |  |  |  | ;->join with type 19 |  | 
| 423 | 287+ |  | ; |  | 
| 424 | 287+ |  | ; type 24 entry, instruction ref, 6-bit opcode, two (or 3 if B-mod) |  | 
| 425 | 287+ |  | ; sequences for the instuctions, store full word in const table |  | 
| 426 | 287+ |  | ; |  | 
| 427 | 287+ |  | .sw24: | ; |  |  | 
| 428 | 287+ | 0040056 |  | o02 | K5c |  |  |  | ;=5+1=>6 | @287+ | 
| 429 | 288 |  |  | call |  |  |  |  | ;get opcode bits |  | 
| 429+1 | 288 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 430 | 289 | 1320015 |  | sll | 13 |  |  |  | ;align |  | 
| 431 | 289+ | 0400035 |  | sto | LodWk2 |  |  |  | ;temp save opcode |  | 
| 432 | 290 |  |  | calln | , |  |  |  | ; recursive call, read F2N2 | @290 | 
| 432+1 | 290 | 7300155100226 |  | lnk | Link1a | : | jmp | loadit.1 |  |  | 
| 433 | 291 | 1000466 |  | jmp | .310 |  |  |  | ;direct return |  | 
| 434 | 291+ | 0400043 |  | sto | LodWk3 |  |  |  | ;skip return, temp save F2N2 |  | 
| 435 | 292 |  | .292: | ; |  |  | 
| 436 | 292 |  |  | calln | , |  |  |  | ;recursive call, read F1N1 | @292 | 
| 436+1 | 292 | 7300155100226 |  | lnk | Link1a | : | jmp | loadit.1 |  |  | 
| 437 | 293 | 1000466 |  | jmp | .310 |  |  |  | ;direct return |  | 
| 438 | 293+ | 1320024 |  | sll | 20 |  |  |  | ;skip return |  | 
| 439 | 294 | 0100043 |  | add | LodWk3 |  |  |  | ;add in F2N2 | @294 | 
| 440 | 294+ | 0000000 |  | o00 | 0 |  |  |  | ; |  | 
| 441 | 295 |  |  | call |  |  |  |  | ;add to constant table |  | 
| 441+1 | 295 | 7300205000301 |  | lnk | StoreConst.lnk | : | jmp | StoreConst.ent |  |  | 
| 442 | 296 | 0100035 |  | add | LodWk2 |  |  |  | ;add opcode | @296 | 
| 443 | 296+ | 1100256 |  | jmp | .3 |  |  |  | ;store in program |  | 
| 444 | 297 |  | ; |  | 
| 445 | 297 |  | ; type 7 entry, cond jump, dont pop patch list. 2-bit modifier |  | 
| 446 | 297 |  | ; |  | 
| 447 | 297 |  | .sw7: | ; |  |  | 
| 448 | 297 | 0000152577777 |  | o00 | PatchLP | / | lod | -1 | ;get current patch list entry |  | 
| 449 | 298 | 1000454 |  | jmp | .9 |  |  |  | ;then join with type 6 | @298 | 
| 450 | 298+ |  | ; |  | 
| 451 | 298+ |  | ; type 6 entry, cond jump, pop patch list. 2-bit modifier. |  | 
| 452 | 298+ |  | ; |  | 
| 453 | 298+ |  | .sw6: | ; |  |  | 
| 454 | 298+ | 0040000 |  | o02 | 0 |  |  |  | ;=1 |  | 
| 455 | 299 | 2700152600000 |  | o27 | PatchLP | / | lod | 0 | ;pop patch list |  | 
| 456 | 300 |  | .9: | ; |  |  | 
| 457 | 300 | 0400045 |  | sto | LodWk4 |  |  |  | ;save jump | @300 | 
| 458 | 300+ | 0040057 |  | o02 | K1a |  |  |  | ;=1+1=>2 |  | 
| 459 | 301 |  |  | call |  |  |  |  | ;get two bit modifier |  | 
| 459+1 | 301 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 460 | 302 | 1320015 |  | sll | 13 |  |  |  | ;shift to place | @302 | 
| 461 | 302+ | 0100045 |  | add | LodWk4 |  |  |  | ;and modify the jump |  | 
| 462 | 303 | 1100256 |  | jmp | .3 |  |  |  | ;store jump in program |  | 
| 463 | 303+ |  | ; |  | 
| 464 | 303+ |  | ; type 5 entry, constant ref, 6 bits opcode, 39 bits constant |  | 
| 465 | 303+ |  | .sw5: | ; |  |  | 
| 466 | 303+ | 0040056 |  | o02 | K5c |  |  |  | ;=5+1=>6 bits opcode |  | 
| 467 | 304 |  |  | call |  |  |  |  | ;get opcode | @304 | 
| 467+1 | 304 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 468 | 305 | 1320015 |  | sll | 13 |  |  |  | ;align |  | 
| 469 | 305+ | 0400045 |  | sto | LodWk4 |  |  |  | ;temp save |  | 
| 470 | 306 | 0600063 |  | lod | K39a |  |  |  | ;=39, full word size | @306 | 
| 471 | 306+ |  |  | nop |  |  |  |  | ; |  | 
| 471+1 | 306+ | 1000463 |  | jmp | .1 |  |  |  |  |  | 
| 471+2 | 307 |  | .1: | ; |  |  | 
| 472 | 307 |  |  | call |  |  |  |  | ;get the constant value |  | 
| 472+1 | 307 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 473 | 308 |  |  | call |  |  |  |  | ;store in constant area | @308 | 
| 473+1 | 308 | 7300205000301 |  | lnk | StoreConst.lnk | : | jmp | StoreConst.ent |  |  | 
| 474 | 309 | 0100045 |  | add | LodWk4 |  |  |  | ;add returned address to opcode |  | 
| 475 | 309+ | 1000410 |  | jmp | .sw8 |  |  |  | ;and store instruction |  | 
| 476 | 310 |  | ; |  | 
| 477 | 310 |  | ; B-modifier from Instruction ref |  | 
| 478 | 310 |  | ; |  | 
| 479 | 310 |  | .310: | ; |  |  | 
| 480 | 310 | 0600067 |  | lod | BBit |  |  |  | ;00 0/00 0 | @310 | 
| 481 | 310+ | 0500043 |  | ads | LodWk3 |  |  |  | ;add B-bit to saved F2N2 |  | 
| 482 | 311 | 1000444 |  | jmp | .292 |  |  |  | ;and rejoin code |  | 
| 483 | 311+ |  | ; |  | 
| 484 | 311+ |  | ; type 11 entry, list of fullword constants (array dope vectors) |  | 
| 485 | 311+ |  | ; |  | 
| 486 | 311+ |  | .sw11: | ; |  |  | 
| 487 | 311+ | 0600064 |  | lod | K8 |  |  |  | ;=8, size for count |  | 
| 488 | 312 |  |  | call |  |  |  |  | ;get count | @312 | 
| 488+1 | 312 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 489 | 313 | 0420045 |  | stn | LodWk4 |  |  |  | ;save counter (negated) |  | 
| 490 | 313+ |  | .10: | ; |  |  | 
| 491 | 313+ | 0640045 |  | lis | LodWk4 |  |  |  | ;load and increment counter | @313+ | 
| 492 | 314 | 1140226 |  | jz | .1 |  |  |  | ;finished-> |  | 
| 493 | 314+ | 0600063 |  | lod | K39a |  |  |  | ;=39 |  | 
| 494 | 315 |  |  | call |  |  |  |  | ;get next constant (39 bits) |  | 
| 494+1 | 315 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 495 | 316 |  |  | call |  |  |  |  | ;store in constant table (ignore dups) |  | 
| 495+1 | 316 | 7300205000300 |  | lnk | StoreConstF.lnk | : | jmp | StoreConstF.ent |  |  | 
| 496 | 317 | 1100471 |  | jmp | .10 |  |  |  | ;and loop |  | 
| 497 | 317+ |  | ; |  | 
| 498 | 317+ |  | ; type 23 entry, table reference, 6-bit opcode argument |  | 
| 499 | 317+ |  | ; |  | 
| 500 | 317+ |  | .sw23: | ; |  |  | 
| 501 | 317+ | 0040056 |  | o02 | K5c |  |  |  | ;=5+1=>6 | @317+ | 
| 502 | 318 |  |  | call |  |  |  |  | ;get 6-bit opcode |  | 
| 502+1 | 318 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 503 | 319 | 1320015 |  | sll | 13 |  |  |  | ;align |  | 
| 504 | 319+ | 0400045 |  | sto | LodWk4 |  |  |  | ;save it |  | 
| 505 | 320 | 0040037 |  | o02 | conlim |  |  |  | ;get current constant pointer |  | 
| 506 | 320+ | 0000000 |  | o00 | 0 |  |  |  | ; |  | 
| 507 | 321 |  |  | call |  |  |  |  | ;store in constant table |  | 
| 507+1 | 321 | 7300205000301 |  | lnk | StoreConst.lnk | : | jmp | StoreConst.ent |  |  | 
| 508 | 322 | 0100045 |  | add | LodWk4 |  |  |  | ;add returned address to opcode |  | 
| 509 | 322+ | 1000410 |  | jmp | .sw8 |  |  |  | ; and store it |  | 
| 510 | 323 |  | ; |  | 
| 511 | 323 |  | ; type 26 entry, patch a full word, followed by address and value sequences |  | 
| 512 | 323 |  | ; |  | 
| 513 | 323 |  | .sw26: | ; |  |  | 
| 514 | 323 |  |  | calln | , |  |  |  | ;recursive call, get address | @323 | 
| 514+1 | 323 | 7300155100226 |  | lnk | Link1a | : | jmp | loadit.1 |  |  | 
| 515 | 324 | 1000513 |  | jmp | .err |  |  |  | ;direct return, error | @324 | 
| 516 | 324+ | 0400035 |  | sto | LodWk2 |  |  |  | ;skip return, save address |  | 
| 517 | 325 |  |  | calln | , |  |  |  | ;recursive call, get value |  | 
| 517+1 | 325 | 7300155100226 |  | lnk | Link1a | : | jmp | loadit.1 |  |  | 
| 518 | 326 | 1000513 |  | jmp | .err |  |  |  | ;direct return, error | @326 | 
| 519 | 326+ |  |  | nop |  |  |  |  | ;skip return, |  | 
| 519+1 | 326+ | 1000507 |  | jmp | .1 |  |  |  |  |  | 
| 519+2 | 327 |  | .1: | ; |  |  | 
| 520 | 327 | 0000166400000 |  | o00 | LodWk2 | / | sto | 0 | ;save value at address | @327 | 
| 521 | 328 | 1000255 |  | jmp | .2 |  |  |  | ;back for next entry |  | 
| 522 | 328+ |  | ; |  | 
| 523 | 328+ |  | ; type 22 entry, sumcheck value for following segment |  | 
| 524 | 328+ |  | .sw22: | ; |  |  | 
| 525 | 328+ | 0600063 |  | lod | K39a |  |  |  | ;=39 | @328+ | 
| 526 | 329 |  |  | call |  |  |  |  | ; get value |  | 
| 526+1 | 329 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 527 | 330 | 0400031 |  | sto | sumck |  |  |  | ; store sumcheck value |  | 
| 528 | 330+ | 1100226 |  | jmp | .1 |  |  |  | ;back for more |  | 
| 529 | 331 |  | ; |  | 
| 530 | 331 |  | ; error, invalid opcode in ocode |  | 
| 531 | 331 |  | ; |  | 
| 532 | 331 | 1700001 | .err: | otp | 1 |  |  |  | ;loop outputting 1 | @331 | 
| 533 | 331+ | 1000513 |  | jmp | .err |  |  |  |  |  | 
| 534 | 332 |  | ; |  | 
| 535 | 332 |  | ; type 13 entry, test sumcheck (should be zero) |  | 
| 536 | 332 |  | ; |  | 
| 537 | 332 | 0600031 | .sw13: | lod | sumck |  |  |  | ;test sumcheck | @332 | 
| 538 | 332+ | 1140226 |  | jz | .1 |  |  |  | ;OK, continue |  | 
| 539 | 333 |  | ; |  | 
| 540 | 333 |  | ; error loading ocode, sumcheck failure |  | 
| 541 | 333 | 1700002 | ._err2: | otp | 2 |  |  |  | ;loop outputting 2 | @333 | 
| 542 | 333+ | 1000515 |  | jmp | ._err2 |  |  |  | ; |  | 
| 543 | 334 |  | ; |  | 
| 544 | 334 |  | ; type 15 entry, end of program, set up for program entry |  | 
| 545 | 334 |  | .sw15: | ; |  |  | 
| 546 | 334 | 0040036 |  | o02 | contop |  |  |  | ;program starts here | @334 | 
| 547 | 334+ | 0100075 |  | add | EP6SK |  |  |  | ;=<40 _TAPE2+8:40 0> |  | 
| 548 | 335 | 0400006 |  | sto | EP6 |  |  |  | ; ep for program restart | @335 | 
| 549 | 335+ | 0040060 |  | o02 | K3b |  |  |  | ;=3+1=>4 |  | 
| 550 | 336 | 0400075 | W336: | sto | _TAPE2+61 |  |  |  | ; modified by 4054 | @336 | 
| 551 | 336+ | 1060521 |  | jo | .11 |  |  |  | ;clear oflo |  | 
| 552 | 337 | 1100535 | .11: | jmp | .18 |  |  |  | ;jump to patch | @337 | 
| 553 | 337+ |  | ; patch moved in-line |  | 
| 554 | 337+ |  | =349+ |  |  | 
| 555 | 349+ |  | .18: | ; |  |  | 
| 556 | 349+ | 0600541 |  | lod | W353 |  |  |  | ;set up print device | @349+ | 
| 557 | 350 | 0400077 | W350: | sto | _TAPE2+63 |  |  |  | ; | @350 | 
| 558 | 350+ | 0600540 |  | lod | W352 |  |  |  | ;and print format |  | 
| 559 | 351 | 0400076 | W351: | sto | _TAPE2+62 |  |  |  | ; | @351 | 
| 560 | 351+ | 1100521 |  | jmp | .12 |  |  |  | ;resume original sequence |  | 
| 561 | 352 |  | ; |  | 
| 562 | 352 | 0000004000000 | W352: | 00 | 1 | : | 00 | 0 | ; | @352 | 
| 563 | 353 | 0000000014000 | W353: | 00 | 0 | : | 00 | TP | ; | @353 | 
| 564 | 354 |  | ; |  | 
| 565 | 354 |  | =337+ |  |  | 
| 566 | 337+ |  | .12: | ; |  |  | 
| 567 | 337+ | 0600101 |  | lod | fsmsgp |  |  |  | ;'free store ' | @337+ | 
| 568 | 338 | 7300005100012 | W338: | lnk | _TAPE2+1 | : | jmp | _TAPE2+10# | ;modified by L4057 to... | @338 | 
| 569 | 339 |  | ;    ;..call OutStr in tape2 |  | 
| 570 | 339 | 1714033 |  | otp | TP+FS |  |  |  | ; | @339 | 
| 571 | 339+ | 1714006 |  | otp | TP+'=' |  |  |  | ; |  | 
| 572 | 340 | 0600072 | W340: | lod | LoMeM |  |  |  | ; |  | 
| 573 | 340+ | 0400031 |  | sto | _TAPE2+25 |  |  |  | ; arg1, tape2 base + 25 |  | 
| 574 | 341 | 7300005100022 | W341: | lnk | _TAPE2+1 | : | o44 | _TAPE2+18 | ;modified by tape2 base | @341 | 
| 575 | 342 |  | ;    ;call OutInt in tape2 |  | 
| 576 | 342 |  | ; no refs |  | 
| 577 | 342 | 1714015 |  | otp | TP+'-' |  |  |  | ; | @342 | 
| 578 | 342+ | 0600037 |  | lod | conlim |  |  |  | ; |  | 
| 579 | 343 | 0400033 | W343: | sto | _TAPE2+27 |  |  |  | ;arg1, modified by tape2 base | @343 | 
| 580 | 343+ | 0000000 |  | o00 | 0 |  |  |  | ; |  | 
| 581 | 344 | 7300005100022 | W344: | lnk | _TAPE2+1 | : | o44 | _TAPE2+18 | ;modified for tape2 | @344 | 
| 582 | 345 |  | ;    ;call OutInt in tape2 |  | 
| 583 | 345 |  | ; |  | 
| 584 | 345 |  | ; now output some linefeeds |  | 
| 585 | 345 |  | ; |  | 
| 586 | 345 | 0600070 |  | lod | K12a |  |  |  | ;=12 |  | 
| 587 | 345+ | 0420033 |  | stn | Link1a |  |  |  | ; |  | 
| 588 | 346 |  | .13: | ; |  |  | 
| 589 | 346 | 1714036 |  | otp | TP+LF |  |  |  | ;output 12 LF's in loop | @346 | 
| 590 | 346+ | 0640033 |  | lis | Link1a |  |  |  | ; |  | 
| 591 | 347 | 1020532 |  | jn | .13 |  |  |  | ; |  | 
| 592 | 347+ |  | ; |  | 
| 593 | 347+ | 1714035 |  | otp | TP+CR |  |  |  | ;6K+CR |  | 
| 594 | 348 |  | ; |  | 
| 595 | 348 | 7300005000035 | W348: | lnk | _TAPE2+1 | : | jmp | _TAPE2+29 | ;modified for tape2 | @348 | 
| 596 | 349 |  | ;    ;call DWait in tape2 |  | 
| 597 | 349 | 1000006 |  | jmp | EP6 |  |  |  | ;enter program |  | 
| 598 | 349+ |  | ; |  | 
| 599 | 349+ |  | =354 |  |  | 
| 600 | 354 |  | ; |  | 
| 601 | 354 |  | ; type 17 entry, two 12-bit data: code size, data size, |  | 
| 602 | 354 |  | ;  2 8-bit data: display size, patch list size |  | 
| 603 | 354 |  | ;   the compiler loader uses the same area for variables and |  | 
| 604 | 354 |  | ;    the display/patch list area to avoid overwriting compiler |  | 
| 605 | 354 |  | ;     (although the program can do so while running). |  | 
| 606 | 354 |  | ;  The Tape2 loader (only used when loading ocode tapes) |  | 
| 607 | 354 |  | ;   keeps the areas separate, putting the display/patch list |  | 
| 608 | 354 |  | ;    in low memory |  | 
| 609 | 354 |  | ; |  | 
| 610 | 354 |  | .sw17: | ; |  |  | 
| 611 | 354 | 0000000 |  | o00 | 0 |  |  |  | ; | @354 | 
| 612 | 354+ | 0040070 |  | o02 | K12a |  |  |  | ;=12 |  | 
| 613 | 355 |  |  | call |  |  |  |  | ;get code size |  | 
| 613+1 | 355 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 614 | 356 | 0400043 |  | sto | LodWk3 |  |  |  | ;temp save | @356 | 
| 615 | 356+ | 0040070 |  | o02 | K12a |  |  |  | ;=12 |  | 
| 616 | 357 |  |  | call |  |  |  |  | ;get vars size |  | 
| 616+1 | 357 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 617 | 358 | 0400045 |  | sto | LodWk4 |  |  |  | ;temp save | @358 | 
| 618 | 358+ | 0600064 |  | lod | K8 |  |  |  | ;=8 |  | 
| 619 | 359 |  |  | call |  |  |  |  | ;get display size |  | 
| 619+1 | 359 | 7300205000160 |  | lnk | getchunk.lnk | : | jmp | getchunk.ent |  |  | 
| 620 | 360 | 0400032 |  | sto | PatchLP |  |  |  | ;start of patch list | @360 | 
| 621 | 360+ | 0600064 |  | lod | K8 |  |  |  | ;=8 |  | 
| 622 | 361 |  |  | call |  |  |  |  | ;patch list size |  | 
| 622+1 | 361 | 7300205000573 |  | lnk | getchunka.lnk | : | jmp | getchunka.ent |  |  | 
| 623 | 362 | 0100032 |  | add | PatchLP |  |  |  | ;add display size | @362 | 
| 624 | 362+ | 0120045 |  | sub | LodWk4 |  |  |  | ;compare with variables size |  | 
| 625 | 363 | 1120554 |  | jn | .14 |  |  |  | ;less, use variable size |  | 
| 626 | 363+ | 0100045 |  | add | LodWk4 |  |  |  | ;restore combined size |  | 
| 627 | 364 | 1000555 |  | jmp | .15 |  |  |  | ;and use that | @364 | 
| 628 | 364+ |  | ; |  | 
| 629 | 364+ |  | ; from 363 |  | 
| 630 | 364+ |  | .14: | ; |  |  | 
| 631 | 364+ | 0600045 |  | lod | LodWk4 |  |  |  | ;load vars size |  | 
| 632 | 365 |  | ; from 364 |  | 
| 633 | 365 |  | .15: | ; |  |  | 
| 634 | 365 | 0160013 |  | bus | Memtop |  |  |  | ;subtract from top of memory | @365 | 
| 635 | 365+ | 0500032 |  | ads | PatchLP |  |  |  | ;add base address in to patch list base |  | 
| 636 | 366 | 0400042 |  | sto | DispBase |  |  |  | ;store as display base address |  | 
| 637 | 366+ | 0040000 |  | o02 | 0 |  |  |  | ;=1 |  | 
| 638 | 367 | 3700212400002 |  | o37 | DispBase | / | sto | 2 | ;store vars base in display[2] |  | 
| 639 | 368 | 0120043 |  | sub | LodWk3 |  |  |  | ;(temp) code size | @368 | 
| 640 | 368+ |  |  | nop |  |  |  |  | ; |  | 
| 640+1 | 368+ | 1000561 |  | jmp | .1 |  |  |  |  |  | 
| 640+2 | 369 |  | .1: | ; |  |  | 
| 641 | 369 | 0000212400001 |  | o00 | DispBase | / | sto | 1 | ;store code base in display[1] |  | 
| 642 | 370 | 0120057 |  | sub | K1a |  |  |  | ;=1 | @370 | 
| 643 | 370+ | 0400036 |  | sto | contop |  |  |  | ;top of constant area |  | 
| 644 | 371 | 0400037 |  | sto | conlim |  |  |  | ;bottom of constant area |  | 
| 645 | 371+ | 0600012 |  | lod | T2VEC |  |  |  | ;address of tape2 relocation base |  | 
| 646 | 372 | 0000212400004 |  | o00 | DispBase | / | sto | 4 | ;store in display[4] | @372 | 
| 647 | 373 | 0040036 |  | o02 | contop |  |  |  | ; |  | 
| 648 | 373+ | 0160046 |  | bus | OcdRdP |  |  |  | ; |  | 
| 649 | 374 | 0100060 |  | add | K3b |  |  |  | ;=3 |  | 
| 650 | 374+ | 1020572 |  | jn | .17 |  |  |  | ;-> |  | 
| 651 | 375 | 0040046 |  | o02 | OcdRdP |  |  |  | ; | @375 | 
| 652 | 375+ | 0100060 |  | add | K3b |  |  |  | ; |  | 
| 653 | 376 |  | ; from 378+ |  | 
| 654 | 376 |  | .16: | ; |  |  | 
| 655 | 376 | 2000242540000 |  | sto | TConTop | / | cls | 0 | ; | @376 | 
| 656 | 377 | 0400051 |  | sto | TConLim |  |  |  | ; |  | 
| 657 | 377+ | 1100226 |  | jmp | .1 |  |  |  | ;loop back to 150 |  | 
| 658 | 378 |  | ; |  | 
| 659 | 378 |  | ; from 374+ |  | 
| 660 | 378 |  | .17: | ; |  |  | 
| 661 | 378 | 0600036 |  | lod | contop |  |  |  | ; | @378 | 
| 662 | 378+ | 1000570 |  | jmp | .16 |  |  |  | ;-> |  | 
| 663 | 379 |  | ;--------------------------------------------------------- |  | 
| 664 | 379 |  | =192 |  |  | 
| 665 | 192 |  | ;----------------------------------------------------------- |  | 
| 666 | 192 |  | ; |  | 
| 667 | 192 |  | StoreConst:: | ; |  |  | 
| 668 | 192 |  | ; |  | 
| 669 | 192 |  | ; StoreConstF: add full-word constant to constant table. With this |  | 
| 670 | 192 |  | ;  entry, the search is bypassed as the values must |  | 
| 671 | 192 |  | ;  be in order stored |  | 
| 672 | 192 |  | ; |  | 
| 673 | 192 |  | StoreConstF.ent: | ; |  |  | 
| 674 | 192 | 0400027 |  | sto | opcd |  |  |  | ;temp save value | @192 | 
| 675 | 192+ | 1000307 |  | jmp | .2 |  |  |  | ; |  | 
| 676 | 193 |  | ; |  | 
| 677 | 193 |  | ; StoreConst: add full-word constant to constant table. With normal |  | 
| 678 | 193 |  | ;  entry, search table for duplicates to save space |  | 
| 679 | 193 |  | ; |  | 
| 680 | 193 |  | StoreConst.ent: | ; |  |  | 
| 681 | 193 | 0400027 |  | sto | opcd |  |  |  | ;temp save value | @193 | 
| 682 | 193+ | 0600050 |  | lod | TConTop |  |  |  | ;present top of constant area |  | 
| 683 | 194 | 0120057 |  | sub | K1a |  |  |  | ;=1 |  | 
| 684 | 194+ | 0400030 |  | sto | ocdwk |  |  |  | ;set search pointer |  | 
| 685 | 195 |  | ; from 198+ |  | 
| 686 | 195 |  | .1: | ; |  |  | 
| 687 | 195 | 0000142600001 |  | o00 | ocdwk | / | lod | 1 | ;get entry from table | @195 | 
| 688 | 196 | 0120027 |  | sub | opcd |  |  |  | ;compare to new value | @196 | 
| 689 | 196+ | 1040314 |  | jz | .4 |  |  |  | ;->equal, return this address |  | 
| 690 | 197 | 0040000 |  | o02 | 0 |  |  |  | ;=1 |  | 
| 691 | 197+ | 0760030 |  | o37 | ocdwk |  |  |  | ;decrement pointer |  | 
| 692 | 198 | 0160051 |  | bus | TConLim |  |  |  | ;check for lower limit | @198 | 
| 693 | 198+ | 1020303 |  | jn | .1 |  |  |  | ;->continue if not finished |  | 
| 694 | 199 |  | ; |  | 
| 695 | 199 |  | ; entry not found (or not looked for), add to table |  | 
| 696 | 199 |  | ; |  | 
| 697 | 199 |  | .2: | ; |  |  | 
| 698 | 199 | 0040000 |  | o02 | 0 |  |  |  | ;=1 | @199 | 
| 699 | 199+ | 0560037 |  | o27 | conlim |  |  |  | ;decrement table limit |  | 
| 700 | 200 | 0760051 |  | o37 | TConLim |  |  |  | ;fetch and decrement TConLim |  | 
| 701 | 200+ | 0160046 |  | bus | OcdRdP |  |  |  | ;overlap with Ocode area |  | 
| 702 | 201 | 1040340 |  | jz | L224 |  |  |  | ;->see if we can move things | @201 | 
| 703 | 201+ |  | L201P: | ; |  |  | 
| 704 | 201+ |  | .3: | ; |  |  | 
| 705 | 201+ | 0600027 |  | lod | opcd |  |  |  | ;get value to be stored |  | 
| 706 | 202 | 0000246400001 |  | o00 | TConLim | / | sto | 1 | ;store in table | @202 | 
| 707 | 203 | 0040037 |  | o02 | conlim |  |  |  | ;load pointer for... |  | 
| 708 | 203+ | 1000316 |  | jmp | .ret |  |  |  | ;...return to caller |  | 
| 709 | 204 |  | ; |  | 
| 710 | 204 |  | ; from 196+ |  | 
| 711 | 204 |  | .4: | ; |  |  | 
| 712 | 204 | 0040030 |  | o02 | ocdwk |  |  |  | ;get pointer |  | 
| 713 | 204+ | 0160050 |  | bus | TConTop |  |  |  | ;relative to current area |  | 
| 714 | 205 | 0160036 |  | bus | contop |  |  |  | ;make relative to final area |  | 
| 715 | 205+ |  |  | nop |  |  |  |  | ;and then... |  | 
| 715+1 | 205+ | 1000316 |  | jmp | .1 |  |  |  |  |  | 
| 715+2 | 206 |  | .1: | ; |  |  | 
| 716 | 206 |  | .ret: | ; |  |  | 
| 717 | 206 |  |  | ret |  |  |  |  | ;... return to caller | @206 | 
| 717+1 | 206 | 0000207000001 |  | o00 | StoreConst.lnk | / | jmp | 1 |  |  | 
| 718 | 207 |  | ;------------------------------------------------------------------- |  | 
| 719 | 207 |  | ; |  | 
| 720 | 207 |  | ; complicated fiddle here: |  | 
| 721 | 207 |  | ;  call L241, then jump in to store result (without lookup) |  | 
| 722 | 207 |  | ; |  | 
| 723 | 207 |  | =207 |  |  | 
| 724 | 207 |  | L207: | ; |  |  | 
| 725 | 207 |  | .207: | ; |  |  | 
| 726 | 207 | 1660040 |  | lnk | Link1 |  |  |  | ; | @207 | 
| 727 | 207+ |  | L207P: | ; |  |  | 
| 728 | 207+ |  | .207P: | ; |  |  | 
| 729 | 207+ | 1000361 |  | jmp | L241 |  |  |  | ; |  | 
| 730 | 208 | 1100311 |  | jmp | StoreConst.3 |  |  |  | ; | @208 | 
| 731 | 208+ |  | ; |  | 
| 732 | 208+ |  |  | pad |  |  |  |  | ; | @208+ | 
| 732+1 | 208+ | 0000000 |  | 00 | 0 |  |  |  |  |  | 
| 733 | 209 |  | ;------------------------------------------------------------------- |  |