*** empty log message ***
[h316.git] / systems / build_super2.sh
1 #!/bin/sh
2
3 DO_FILE=s2.do
4
5 if [ ! "$MAKE" ]; then
6 echo "Not run from within a Makefile!"
7 exit 4
8 fi
9
10 cat > $DO_FILE <<EOF
11 echo Booting $LDR_APM_8K
12 at ptr $LDR_APM_8K
13 boot ptr
14 echo Loading $LDR_APM
15 ; enter high loader address for loading above itself
16 d 15000 37777
17
18 echo *** Loading $LDR_APM
19 at ptr $LDR_APM
20 d a 33000
21 d p 16000
22 go
23 go
24 at ptr $LDR_DUMY
25 go
26
27 echo *** Loading $CLEANUP
28 at ptr $CLEANUP
29 d a 31000
30 d p 16003
31 go
32 go
33
34 echo *** Loading $PRNTNZ
35 at ptr $PRNTNZ
36 d a 32000
37 d p 16003
38 go
39 go
40
41
42 echo *** Loading $PAL_AP
43 at ptr $PAL_AP
44 d a 37000
45 d p 16003
46 go
47 go
48
49 ; Print memory map
50 go 16002
51
52 ; Clear memory
53 d 100-27777 0
54
55 ; Run PRNTNZ
56 d a 0
57 d b 37777
58 go 32000
59
60 ; Common block settings:
61 d 35000 31000
62
63 ; Settings for immediate load after sys restore
64 r
65 d p 36000
66
67 save $SUPER2_SYS
68
69 at ptp $SUPER2_SLST
70 d a 0
71 go 37000
72 d a 31000
73 go
74 d a 37577
75 go
76 echo Complete.
77 q
78 EOF
79 h316 $DO_FILE
80 rm -f $DO_FILE