6567922432ee5f94e3e1a0f95edce73a91924e93
[h316.git] / systems / build_dap16.sh
1 #!/bin/sh
2
3 DO_FILE=dap.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 REST $SUPER_SYS_FOR_DAP
12
13 at ptr $DAP16
14 run 36000
15 go
16 at ptr $IOS16
17 go
18 at ptr $DAP_LIBRARY
19 go
20 echo now loaded before dumy:
21 run 36002
22 echo now satisfying....
23 at ptr $DUMYX16
24 ;IMPORTANT! THERE ARENT NO MORE UNSATISFIED IN THE FIRST
25 ;EXPORT BLOCK. SECOND BLOCK SEEMS NOT TO TRIGGER DUMMY!
26 d p 36004
27 go
28 go
29
30 at ptr $DECCL
31 go
32 at ptr $SETSIZ
33 go
34 go
35
36
37 r
38 at ptp $DAP_SLST
39 run 37000
40 d a 100
41 go
42 d a 17777
43 go
44
45 d p 1000
46 d a 120420
47 save $DAP_SYS
48
49 run 36002
50 q
51 EOF
52
53 h316 $DO_FILE
54 rm $DO_FILE
55
56