-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathjkdcb0.mac
11187 lines (10707 loc) · 272 KB
/
jkdcb0.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
; Originally was compiled by MACY-11, an assembler running on the PDP-10.
; The source is adapted to be translated by regular MACRO-11.
;
; IDENTIFICATION
; --------------
;
; Product code: AC-F2418-MC
; Product name: CJKDCB0 KEF11-AA DIAG #1
; Date: Nov-79
; Maintainer: Diagnostic Engineering
;
; The information in this document is subject to change without notice
; and should not be construed as a commitment by Digital Equipment
; Corporation. Digital Equipment Corporation assumes no responsibility
; for any errors that may appear in this document.
;
; The software described in this document is furnished to the purchaser
; under a license for use on a single computer system and can be copied
; (with inclusion of Digital's copyright notice) only for use in such
; system, except as may otherwise be provided in writing by Digital.
;
; Digital equipment corporation assumes no responsibility for the use
; or reliability of its software on equipment that is not supplied by
; Digital.
;
; Copyright (c) 1979 Digital Equipment Corp., Maynard, Mass. 01754
;
; Program history:
;
; Date Revision Reason for revision
;
; June, 1979 A First release. This program was assembled
; using the PDP-11 maindec sysmac package
; (maindec-11-dzqac-c3), Jan 19, 1977.
; November, 1979 B Corrections were made to multi-tester
; support code.
;_____________________________________________________________________________
;
; CONTENTS
; --------
; 1.0 Abstract.
; 2.0 Requirements.
; 2.1 Equipment.
; 2.2 Storage.
; 2.3 Preliminary programs.
; 3.0 Loading procedure.
; 4.0 Starting procedure.
; 4.1 Control switch settings.
; 4.2 Starting address.
; 4.3 Program and operator interaction.
; 5.0 Operating procedure.
; 5.1 Operational switch settings.
; 5.3 Operator action.
; 6.0 Errors.
; 6.1 Summary.
; 6.2 Error recovery.
; 7.0 Restrictions.
; 7.1 Starting restrictions.
; 7.2 Operating restrictions.
; 8.0 Miscellaneous.
; 8.1 Execution times.
; 8.2 Stack pointer.
; 8.3 Pass count.
; 8.4 T-bit trapping.
; 8.5 Software switch register.
; 8.6 ACT, APT and XXDP compatibility.
; 9.0 Program description.
; 9.1 CJKDCB
; 10.0 Listing
; 10.1 CJKDCB
;
; 1.0 Abstract
;
; The two programs:
;
; CJKDCB, CJKDDB
;
; Are design to detect and report logic faults in the
; F-11 MMU and floating point chip set. The
; design is an attempt to reach all mirco-code locations.
; Tests are partitioned into two stand-alone programs
; described below.
;
; Note that error reports in these programs are based
; upon the knowledge that all previous tests (CPU, MMU) have
; been run and in most case that there is only a single
; point fault exists. If the programs or tests
; are not run in order then error messages may not be
; accurate.
;
; A. CJKDCB
;
; CJKDCB tests: (floating point test 1)
; ldfps
; stfps
; cfcc
; setf, setd, seti and setl
; stst
; ldf and ldd (all source modes)
; std (mode 0 and 1)
; addf, addd and subd (most conditions)
; addf, addd and subd (all conditions not
; tested in dffpa)
; cmpd and cmpf
; divd and divf
; muld and mulf
; modd and modf
;
; B. CJKDDA
;
; CJKDDA tests: (floating point test 2)
;
; stf and std (all modes)
; stcfd and stcdf
; clrd and clrf
; negf and negd
; absf and absd
; tstf and tstd
; negf, absf and tstf (all source modes)
; negf, absf and tstf (all source modes)
; ldfps (all source modes)
; ldcif and ldclf
; ldcid and ldcld
; ldexp
; stfps (all destination modes)
; stcfl and stcfi
; stcdl and stcdi
; stexp
; stst
;
; 2.0 Requirements
;
; 2.1 Equipment
;
; A processor with the DCF11-AA, KTF11-AA and KEF11-A chip set.
;
; 2.2 Storage
;
; Both programs require a memory system of at
; least 16k to load and run.
;
; 2.3 Preliminary programs
;
; These two diagnostics will assume that the
; basic central processor is faultless, therefore
; when in doubt run the DCF11-AA processor diag-
; nostics before these floating point diagnostics.
;
; 3.0 Loading procedure
;
; The programs will be supplied on the 11/23
; diagnostic media. Refer to the XXDP operating
; manual for further information.
;
; 4.0 Starting procedure
;
; 4.1 Control switch settings
;
; See section 5.1
;
; 4.2 Program and operator action
;
; 1. Load program into memory
; 2. Load address 200
; 3. Set console switches (if console is present)
; 4. Press start
; on first pass the program
; will identify itself. Note that if there is
; no physical console the program will request
; the operator for initial value for the
; software switch register (see section 8.5).
; If running under ACT, APT or chain this does
; not apply.
; 5. The program will loop and an end of pass will
; be typed at the end of every pass.
;
; 5.0 Operating procedure
;
; 5.1 Operational switch settings
;
; The switch setting are:
;
; Octal
; sw<15>=1... 100000 Halt on error
; sw<14>=1... 40000 Loop on current test
; sw<13>=1... 20000 Inhibit error type outs
; sw<12>=1... 10000 Inhibit T-bit trapping
; sw<11>=1... 4000 Inhibit iterations
; sw<10>=1... 2000 Ring TTY bell on error
; sw<9>=1.... 1000 Loop on error
; sw<8>=1.... 400 Loop on test specified in sw<6>
; through sw<0>
;
; 6.0 Errors
;
; 6.1 Summaries
;
; When an error is encountered, an error message accompanied
; by the error PC are typed.
; There are four standard error messages used, describing
; the probable cause of failure, such as: probably bad MMU chip;
; bad FP1 chip; bad hybrid FP chip; floating point error.
;
; 6.2 Error recovery
;
; sw<15:9>=0... Most errors will cause execution to
; go to the start of the next test
; after the message is typed. A few
; tests are in sections. In these
; tests an error will cause execution
; to go to the next section after the
; message is typed.
;
; sw<15>=1... The program will halt after typing
; the error message. Pressing the
; console continue will cause the
; program to continue as if sw<15>=0.
;
; 7.0 Restrictions
;
; None
;
; 8.0 Miscellaneous
;
; 8.1 Execution times
;
; Less than 2 seconds for each program on any pass.
;
; 8.2 Stack pointer
;
; The stack pointer is initialized to 1100 in each of
; the two programs.
;
; 8.3 Pass count
;
; The program makes one pass for each end of pass
; message typed. The end of pass message describes
; the total number of passes completed.
;
; 8.4 T-bit trapping
;
; If sw<12>=0 each program will run with trace traps
; on every other pass. First pass will not enable
; trace traps. Note sw<12>=1 disables T-bit traps.
;
; 8.5 Software switch register
;
; Each of the two programs will run with or without
; a console switch register. If a physical console
; switch register is present on the system, then these
; programs will go ahead and use it for the switch
; functions described in 5.1 above. If however there
; is no console switch register on the system a
; software switch register will be used. This
; software switch register can be examined or modified
; at any time by the user if he types Control-G while
; the program is running. This Control-G will cause
; the contents of the software switch register to be
; typed on the TTY and ask the user for a new value.
; when the user types a value and carriage return then
; the program will resume testing at the same point at
; which it left off when the user typed Control-G.
; note that when not running under act, apt or chain
; the user will be asked for a software switch
; register value after loading address 200 and
; starting the program the first time the program is
; run after loading (only if no console switch
; register is on the system).
;
; 8.6 ACT, APT and XXDP compatibilty
;
; These programs are fully compatible with:
; APT
; ACT
; XXDP monitor and chain programs.
;
; 9.0 Program description
;
; Test 1 ldfps, stfps and data paths test
;
; This is a test of the ldfps (load floating point
; status) and stfps (store floating point status)
; instructions. Various pattern are used and run
; through the floating point status register.
; only dm0 and sm0 are used. Note that a
; mask must be used because some of the fps bits
; cannot be set.
;
; Test 2 cfcc test
;
; This is a test of the copy condition codes
; instruction, cfcc.
;
; Test 3 setf, setd, seti and setl test
;
; This is a test of the setf, setd, seti and setl
; instructions. Each instruction is executed with the
; fps containing all ones and also with the fps clear.
; the result of each situation is checked.
;
; Test 4 Illegal FPP op codes and stst test
;
; This is a test of the FPP operation codes:
; 170003
; 170004
; 170010
; 170013
; 170014
; 170077
; These are illegal instructions and with interrupts
; enabled should cause a trap to 244. Also tested
; here is the instruction: stst R1, which should put
; the fec code 2 in R1, after any of the above op
; codes is executed.
;
; Test 5 fid, interrupt disable, bit test
;
; This is a test of fps bit 14 (fid) or floating
; interrupt disable. An illegal instruction is
; executed with fid=1. No interrupt should occur.
;
; Test 6 ldd and std, with src and dst mode 1 test
;
; This is a test of both the instruction:
; ldd (R0), ac0
; and the instruction:
; std ac0, (R0)
; most of the
; failures are isolated to the src or dst flows. Note
; that the integrity of ac0 has not been assured.
; This means that in some cases it will be impossible
; to isolate certain data pattern failures to either
; the flows or this accumulator.
;
; Test 7 fsrc mode 0 test
;
; This is a test of fsrc mode zero using the ldd and
; ldf instructions.
;
; Test 10 fdst mode 0 test
;
; This is a test of the store instructions. std and
; stf, with fdst mode 0.
;
; Test 11 Accumulators data patterns test
;
; This is a test of the floating point processor
; accumulators.
; Each accumulator is tested in two ways:
; 1. Test pattern generated by floating a
; one across a field of zeroes.
; 2. Test pattern generated by floating a
; zero across a field of ones.
; Each of accumulators ac0 through ac5 is tested.
;
; Test 12 FPP accumulators dual address test
;
; This test performs a dual addressing test on the
; floating accumulators. Note that accumulator zero
; is used to access all the others.
;
; Test 13 fsrc mode 0 with illegal accumulator test
;
; This is a test of fsrc mode 0 with accumulators 6
; and 7. Use of either of these non-existent
; accumulators should result in a trap to 244 with
; fec=2 (illegal FPP instruction).
;
; Test 14 fsrc mode 2 test
;
; This is a test of fsrc mode 2, auto increment mode.
;
; Test 15 fsrc mode 4 test
;
; This is a test of fsrc mode 4, auto decrement mode.
;
; Test 16 fsrc mode 2, with fd=0, test
;
; This is a test of fsrc mode 2 with fd=0, (auto
; increment)
;
; Test 17 fsrc mode 2 with gr7, immediate mode, test
;
; This is a test of fsrc mode 2 using gr7 (the PC).
; This is immediate mode.
;
; Test 20 fsrc mode 3 test
;
; This is a test of fsrc mode 3, auto increment deferred
;
; Test 21 fsrc mode 5 test
;
; This is a test of fsrc mode 5, auto decrement deferred.
;
; Test 22 fsrc mode 6 test
;
; This is a test of fsrc mode 6, index mode
;
; Test 23 fsrc mode 7 test
;
; This is a test of fsrc mode 7, index deferred mode.
;
; Test 24 (but ezbt y8), (but enbt) and (but fiuv) test
;
; This is a test of the (but ezbt y8) fork, the (but
; enbt) fork and (but fiuv) fork in the load
; instruction flows.
; Each of the patterns:
; 0
; +num
; -num
; -0
; is loaded twice. Once with ac>0 then with ac=0.
; After each load the fps is check to insure that
; control was passed through with the forks properly.
;
; Test 25 addf, addd, subf and subd with fsrc=ac=0 test
;
; This is a test of add and sub with fsrc=ac=0
;
; Test 26 addd and sub with fsrc=0
;
; This is a test of add and sub with fsrc=0.
;
; Test 27 subd with ac=0 test
;
; This is a test of subd with ac=0, both positive and
; negative fsrc's are tried.
;
; Test 30 addd with ac=0 test
;
; Positive and negative fsrc's are tried.
;
; Test 31 addf and addd with e(ac)=e(fsrc) and (but ft) test
;
; This is a test of the add instruction with the
; operands having equal exponents. The (buf ft) fork
; in the round/trunk flows is also tested.
;
; Test 32 addf and addd with e(ac) less than e(fsrc) test
;
; This is atest of the addd and addf instructions and
; the align ac algorithm flows. The constant (25 for
; floating, 57 for double) used is checked. Then
; simple and worst case alignment situations are
; tried. Note e(ac) is less then e(fsrc)
;
; Test 33 addf and addd with e(ac) greater than e(fsrc) test
;
; This is a test of the addd and addf instructions and
; the align fsrc algorithm flows. First the constant
; used is checked. Then simple and worst case
; alignment situations are tried. Note e(ac) is
; greater than e(fsrc).
;
; Test 34 addd with negatve oprands test
;
; This is a test of the addd instruction with negative
; operands. Every combination of operand signs is
; tried.
;
; Test 35 subd test
;
; This is a test of the subd instruction. Both a
; positive and a negative number is subtracted from it
; self
;
; Test 36 Normalize algorithm test
;
; This is a test of the normalize flow algorithm. Two
; patterns are used, first the minimum situation
; requiring one left shift and then the maximum
; situation requiring 56 shifts.
;
; Test 37 Round/trunk test
;
; This is a test of the round/trunk flows. In
; particular two things are tested: first a condition
; in which rounding results in the need for
; renormalization, and second the PSW condition codes
; N and Z-bit combinations
;
; Test 40 Over/under test
;
; This is a partial test of the over/under flows. One
; overflow and two underflow conditions are checked.
; The remaining underflow cond. And the remaining
; overflow cond. Will be checked later using the xxx
; instruction. Here each condition tested is checked
; both with traps enabled (fiu=1 or fiv=1) and also
; with traps disabled (fiu=0 or fiv=0).
;
; Test 41 ldcfd and ldcdf test
;
; This is a test of ldcfd and ldcdf.
;
; Test 42 cmpd test
;
; This is a test of the cmpd instruction. Note that a
; subroutine is used to set up operands. Execute the
; instruction and check the results.
;
; Test 43 divd with (fsrc=0) and (but fd) test
;
; This is a test of the divd instruction with a zero
; divisor. The condition is checked with both trap
; enabled and traps disabled.
;
; Test 44 divf test
;
; This is a test of the divf instruction. Note that a
; subroutine is used to set up the operands, execute
; the instruction and check results.
;
; Test 45 divd test
;
; This is a test of the divd instruction. Note that a
; subroutine is used to set up the operands. Execute
; the instruction and check the results.
;
; Test 46 mulf test
;
; This is a test of the mulf instruction. It makes
; use of a subroutine to set up the operands, execute
; the mulf instruction and check the results.
;
; Test 47 muld test
;
; This is a test of the muld instruction. Note that a
; subroutine is used to set up the operands, execute
; the muld instruction and check the results.
;
; Test 50 Under/over flow, using mulf with traps disabled, test
;
; This is a test of the overflow and underflow
; conditions using the mulf instruction with traps
; disabled. Note that a subroutine is used to set up
; the operands. Execute the mulf instruction and check
; the results.
;
; Test 51 Under/over flow, using muld with traps disabled, test
;
; This is a test of the overflow and underflow
; conditions that can arrise using the muld
; instruction with traps disabled. A subroutine is
; used to set up the operands. Execute the muld
; instruction and check the results.
;
; Test 52 Under/over flow, using mulf with traps enabled, test
;
; This is a test of the underflow and overflow
; conditions that can occur using the mulf
; instruction. A subroutine is called to set up the
; operands, execute the mulf instruction and check the
; results. Here the particular interrupt, either
; overflow or underflow, is enabled so a trap should
; occur.
;
; Test 53 Under/over flow, using muld wfh traps enabled, test
;
; This is a test of the over flow and under flow
; conditions using the muld instruction with traps
; enabled. A subroutine is used to set up the
; operands. Execute the muld instruction and check the
; results.
;
; Test 54 mode test
;
; this is a test of the mode instruction, which makes
; use of a subroutine to set up the operands. Execute
; the modf instruction and check the results.
;
; Test 55 modd test
;
; This is a test of the modd instruction. It makes
; use of a subroutine to set up the arguments. Execute
; the instruction and check the results.
;
; Test 56 Under/over flow, using modf with traps disabled, test
;
; This is a test of the modf overflow and underflow
; conditions. It makes use of a subroutine to setup
; the operands, execute the modf instruction and check
; the results. Traps are disabled during this test.
;
; Test 57 Under/over flow, using modd with traps disabled, test
;
; Test 60 More microcodes coverage, test
;
; 10. Listing
;_____________________________________________________________________________
;
HOEP = 0 ; halt on end-of-pass
NOSCO = 0 ; no scope trap and gtswr
INSWR = 000000 ; 100000 for halt on error, no gtswr
;_____________________________________________________________________________
;
.asect ;
. = 0 ; loop on test
.title CJKDCB KEF11-A FP DIAG PART 1
.nlist cnd, mc, md
.list me
;_____________________________________________________________________________
;
$tn = 1 ;
$swr = 160000 ; halt on error, loop on test, inhibit error typout
fpvect = 244 ;
$swr = 177400 ;
$swrmsk = 200 ;
tab = 11 ;
crlf = 15 ;
;_____________________________________________________________________________
;
.sbttl "BASIC DEFINITIONS"
stack = 1100 ; initial address of the stack pointer
; .equiv emt, error - basic definition of error call
.if ne NOSCO ;
scope = 240 ; nop
.iff ;
scope = iot ; .equiv iot, scope - basic definition of scope call
.endc ;
;
; miscellaneous definitions
ht = 11 ; code for horizontal tab
lf = 12 ; code for line feed
cr = 15 ; code for carriage return
crlf = 200 ; code for carriage return-line feed
ps = 177776 ; processor status word
;
stklmt = 177774 ; stack limit register
pirq = 177772 ; program interrupt request register
dswr = 177570 ; hardware switch register
ddisp = 177570 ; hardware display register
;
type = 104401 ; trap+1 tty typeout routine
typoc = 104402 ; trap+2 type octal number (with leading zeros)
typos = 104403 ; trap+3 type octal number (no leading zeros)
typon = 104404 ; trap+4 type octal number (as per last call)
typds = 104405 ; trap+5 type decimal number (with sign)
.if ne INSWR ;
gtswr = 240 ; nop
.iff ;
gtswr = 104406 ; trap+7 get soft-swr setting
.endc ;
ckswr = 104407 ; trap+7 test for change in soft-swr
rdchr = 104410 ; trap+10 tty type in character routine
savreg = 104411 ; trap+11 save R0-R5 routine
resreg = 104412 ; trap+12 restore R0-R5 routine
rsetup = 104413 ; trap+13 routine to initialize at end of each test
lperr = 104414 ; trap+14 routine to set up loop on error address
;
; general purpose register definitions
R0 = %0 ; general register
R1 = %1 ; general register
R2 = %2 ; general register
R3 = %3 ; general register
R4 = %4 ; general register
R5 = %5 ; general register
R6 = %6 ; general register
R7 = %7 ; general register
SP = %6 ; stack pointer
PC = %7 ; program counter
;
; priority level definitions
pr0 = 0 ; priority level 0
pr1 = 40 ; priority level 1
pr2 = 100 ; priority level 2
pr3 = 140 ; priority level 3
pr4 = 200 ; priority level 4
pr5 = 240 ; priority level 5
pr6 = 300 ; priority level 6
pr7 = 340 ; priority level 7
;
sw15 = 100000 ; "switch register" switch definitions
sw14 = 40000 ;
sw13 = 20000 ;
sw12 = 10000 ;
sw11 = 4000 ;
sw10 = 2000 ;
sw9 = 1000 ;
sw8 = 400 ;
sw7 = 200 ;
sw6 = 100 ;
sw5 = 40 ;
sw4 = 20 ;
sw3 = 10 ;
sw2 = 4 ;
sw1 = 2 ;
sw0 = 1 ;
;
bit15 = 100000 ; data bit definitions (bit0 to bit15)
bit14 = 40000 ;
bit13 = 20000 ;
bit12 = 10000 ;
bit11 = 4000 ;
bit10 = 2000 ;
bit9 = 1000 ;
bit8 = 400 ;
bit7 = 200 ;
bit6 = 100 ;
bit5 = 40 ;
bit4 = 20 ;
bit3 = 10 ;
bit2 = 4 ;
bit1 = 2 ;
bit0 = 1 ;
; basic "CPU" trap vector addresses
errvec = 4 ; time out and other errors
resvec = 10 ; reserved and illegal instructions
tbitvec = 14 ; T-bit
trtvec = 14 ; trace trap
bptvec = 14 ; breakpoint trap (bpt)
iotvec = 20 ; input/output trap (iot) **scope**
pwrvec = 24 ; power fail
emtvec = 30 ; emulator trap (emt) **error**
trapvec = 34 ; "trap" trap
tkvec = 60 ; tty keyboard vector
tpvec = 64 ; tty printer vector
pirqvec = 240 ; program interrupt request vector
;_____________________________________________________________________________
;
.sbttl "FPP REGISTER DEFINITIONS"
ac0 = %0 ;
ac1 = %1 ;
ac2 = %2 ;
ac3 = %3 ;
ac4 = %4 ;
ac5 = %5 ;
ac6 = %6 ;
ac7 = %7 ;
;_____________________________________________________________________________
;
.macro vect, offset, adr, val ;
. = offset ;
.if nb, <adr> ;
.word adr ;
.iff ;
.word .+2 ;
.endc ;
.if nb, <val> ;
.word val ;
.iff ;
.word 0 ;
.endc ;
.endm ;
;_____________________________________________________________________________
;
; All unused locations from 4-776 contain a ".+2, halt"
; sequence to catch illegal traps and interrupts
; Location 0 contains 0 to catch improperly loaded vectors
;
.sbttl "TRAP CATCHER"
. = 0
;
vect 0, 0, ;
vect 4, 6 ;
vect 10, 12 ;
vect 14, 16 ;
vect 20, 22, ;
vect 24, 200 ; for APT start up
vect 30, 32 ;
vect 34, 36 ;
vect 40, 42, ; hooks required by ACT-11
vect 44, $apthd, $endad ; set loc.46 to address of $endad in .seop
;
;_____________________________________________________________________________
;
.sbttl "ACT11 HOOKS"
vect 50, 52 ; set loc.52 to zero
vect 54, 56 ;
vect 60, 62 ;
vect 64, 66 ;
vect 70, 72 ;
vect 74, 76 ;
vect 100, 102 ;
vect 104, 106 ;
vect 110, 112 ;
vect 114, 116 ;
vect 120, 122 ;
vect 124, 126 ;
vect 130, 132 ;
vect 134, 136 ;
vect 140, 142 ;
vect 144, 146 ;
vect 150, 152 ;
vect 154, 156 ;
vect 160, 162 ;
vect 164, 166 ;
vect 170, 172 ;
;_____________________________________________________________________________
;
;
. = 174 ;
dispreg: .word 0 ; software display register
swreg: .word INSWR ; software switch register
;
.sbttl "STARTING ADDRESS(ES)"
jmp @#start ; jump to starting address of program
;_____________________________________________________________________________
;
vect 204, 206 ;
vect 210, 212 ;
vect 214, 216 ;
vect 220, 222 ;
vect 224, 226 ;
vect 230, 232 ;
vect 234, 236 ;
vect 240, 242 ;
vect 244, 246 ;
vect 250, 252 ;
vect 254, 256 ;
vect 260, 262 ;
vect 264, 266 ;
vect 270, 272 ;
vect 274, 276 ;
vect 300, 302 ;
vect 304, 306 ;
vect 310, 312 ;
vect 314, 316 ;
vect 320, 322 ;
vect 324, 326 ;
vect 330, 332 ;
vect 334, 336 ;
vect 340, 342 ;
vect 344, 346 ;
vect 350, 352 ;
vect 354, 356 ;
vect 360, 362 ;
vect 364, 366 ;
vect 370, 372 ;
vect 374, 376 ;
vect 400, 402 ;
vect 404, 406 ;
vect 410, 412 ;
vect 414, 416 ;
vect 420, 422 ;
vect 424, 426 ;
vect 430, 432 ;
vect 434, 436 ;
vect 440, 442 ;
vect 444, 446 ;
vect 450, 452 ;
vect 454, 456 ;
vect 460, 462 ;
vect 464, 466 ;
vect 470, 472 ;
vect 474, 476 ;
vect 500, 502 ;
vect 504, 506 ;
vect 510, 512 ;
vect 514, 516 ;
vect 520, 522 ;
vect 524, 526 ;
vect 530, 532 ;
vect 534, 536 ;
vect 540, 542 ;
vect 544, 546 ;
vect 550, 552 ;
vect 554, 556 ;
vect 560, 562 ;
vect 564, 566 ;
vect 570, 572 ;
vect 574, 576 ;
vect 600, 602 ;
vect 604, 606 ;
vect 610, 612 ;
vect 614, 616 ;
vect 620, 622 ;
vect 624, 626 ;
vect 630, 632 ;
vect 634, 636 ;
vect 640, 642 ;
vect 644, 646 ;
vect 650, 652 ;
vect 654, 656 ;
vect 660, 662 ;
vect 664, 666 ;
vect 670, 672 ;
vect 674, 676 ;
vect 700, 702 ;
vect 704, 706 ;
vect 710, 712 ;
vect 714, 716 ;
vect 720, 722 ;
vect 724, 726 ;
vect 730, 732 ;
vect 734, 736 ;
vect 740, 742 ;
vect 744, 746 ;
vect 750, 752 ;
vect 754, 756 ;
vect 760, 762 ;
vect 764, 766 ;
vect 770, 772 ;
vect 774, 776 ;
.sbttl "COMMON TAGS"
;_____________________________________________________________________________
;
; This table contains various common storage locations
; used in the program.
;
. = 1100
$cmtag: ; start of common tags
.word 0 ;
$tstnm: .byte 0 ; contains the test number
$erflg: .byte 0 ; contains error flag
$icnt: .word 0 ; contains subtest iteration count
$lpadr: .word 0 ; contains scope loop address
$lperr: .word 0 ; contains scope return for errors
$erttl: .word 0 ; contains total errors detected
$itemb: .byte 0 ; contains item control byte
$ermax: .byte 1 ; contains max. errors per test
$errpc: .word 0 ; contains PC of last error instruction
$gdadr: .word 0 ; contains address of "good" data
$bdadr: .word 0 ; contains address of "bad" data
$gddat: .word 0 ; contains "good" data
$bddat: .word 0 ; contains "bad" data
.word 0 ; reserved-not to be used
.word 0 ;
$autob: .byte 0 ; automatic mode indicator
$intag: .byte 0 ; interrupt mode indicator
.word 0 ;
swr: .word dswr ; address of switch register
display: .word ddisp ; address of display register
$tks: 177560 ; tty kbd status
$tkb: 177562 ; tty kbd buffer
$tps: 177564 ; tty printer status reg. address
$tpb: 177566 ; tty printer buffer reg. address
$null: .byte 0 ; contains null character for fills
$fills: .byte 2 ; contains # of filler characters required
$fillc: .byte 12 ; insert fill chars. after a "line feed"
$tpflg: .byte 0 ; "terminal available" flag (bit<07>=0 - yes)
$regad: .word 0 ; contains the address from
; which ($reg0) was obtained
$reg0: .word 0 ; contains (($regad)+0)
$reg1: .word 0 ; contains (($regad)+2)
$reg2: .word 0 ; contains (($regad)+4)
$reg3: .word 0 ; contains (($regad)+6)
$reg4: .word 0 ; contains (($regad)+10)
$reg5: .word 0 ; contains (($regad)+12)
$reg6: .word 0 ; contains (($regad)+14)
$reg7: .word 0 ; contains (($regad)+16)
$reg10: .word 0 ; contains (($regad)+20)
$reg11: .word 0 ; contains (($regad)+22)
$reg12: .word 0 ; contains (($regad)+24)
$reg13: .word 0 ; contains (($regad)+26)
$reg14: .word 0 ; contains (($regad)+30)
$reg15: .word 0 ; contains (($regad)+32)
$reg16: .word 0 ; contains (($regad)+34)
$reg17: .word 0 ; contains (($regad)+36)
$reg20: .word 0 ; contains (($regad)+40)
$reg21: .word 0 ; contains (($regad)+42)
$reg22: .word 0 ; contains (($regad)+44)
$reg23: .word 0 ; contains (($regad)+46)
$tmp0: .word 0 ; user defined
$tmp1: .word 0 ; user defined
$tmp2: .word 0 ; user defined
$tmp3: .word 0 ; user defined
$tmp4: .word 0 ; user defined
$tmp5: .word 0 ; user defined
$tmp6: .word 0 ; user defined
$tmp7: .word 0 ; user defined
$tmp10: .word 0 ; user defined
$tmp11: .word 0 ; user defined
$tmp12: .word 0 ; user defined
$tmp13: .word 0 ; user defined
$tmp14: .word 0 ; user defined
$tmp15: .word 0 ; user defined
$tmp16: .word 0 ; user defined
$tmp17: .word 0 ; user defined
$tmp20: .word 0 ; user defined
$tmp21: .word 0 ; user defined
$tmp22: .word 0 ; user defined
$tmp23: .word 0 ; user defined
$times: 0 ; max. number of iterations
$escape: 0 ; escape on error address
$bell: .asciz <207><377><377> ; code for bell
$ques: .ascii /?/ ; question mark
$crlf: .ascii <15> ; carriage return
$lf: .asciz <12> ; line feed
.sbttl "APT MAILBOX-ETABLE"
.even ;
$mail: ; APT mailbox
$msgty: .word 0 ; amsgty - message type code
$fatal: .word 0 ; afatal - fatal error number
$testn: .word 0 ; atestn - test number
$pass: .word 0 ; apass - pass count
$devct: .word 0 ; adevct - device count
$unit: .word 0 ; aunit - I/O unit number
$msgad: .word 0 ; amsgad - message address
$msglg: .word 0 ; amsglg - message length