*** empty log message ***
authorhachti <hachti>
Thu, 14 Dec 2006 04:30:16 +0000 (04:30 +0000)
committerhachti <hachti>
Thu, 14 Dec 2006 04:30:16 +0000 (04:30 +0000)
systems/Makefile
systems/build-dap16.sh [new file with mode: 0755]

index 4e21fde5cce745dc010699ef61aac65c79cf506f..4d7f84ef44dea6a4725584c91a509c70a4ccc9c3 100644 (file)
@@ -1,13 +1,15 @@
 # Makefile for system generation
 
 # Targets
-export SUPER3_SYS=$(H316)/sys/super3.sys
-export SUPER2_SYS=$(H316)/sys/super2.sys
-export SUPER3_SLST=$(H316)/slst/super3.slst
-export SUPER2_SLST=$(H316)/slst/super2.slst
-
-# Used files
-export LDR_APM_8K=$(H316)/slst/ldr-apm_8k.slst
+export SUPER3_SYS=$(H316)/systems/super3.sys
+export SUPER2_SYS=$(H316)/systems/super2.sys
+export SUPER3_SLST=$(H316)/systems/super3.slst
+export SUPER2_SLST=$(H316)/systems/super2.slst
+export DAP_SYS=$(H316)/systems/dap.sys
+export DAP_SLST=$(H316)/systems/dap.slst
+
+# Used files 
+export LDR_APM_8K=$(H316)/slst/ldr-apm.slst
 export LDR_APM=$(H316)/obj/ldr-apm.obj
 export LDR_DUMY=$(H316)/obj/ldr-dumy.obj
 export PRNTNZ=$(H316)/obj/prntnz.obj
@@ -16,12 +18,25 @@ export CLEANUP=$(H316)/programs/tools/build/cleanup.obj
 export BINAL=$(H316)/programs/tools/build/binal.obj
 export PAL_AP=$(H316)/obj/pal-ap.obj
 export RESTART=$(H316)/programs/tools/build/restart.obj
+export DAP16=$(H316)/obj/dap16.obj
+export IOS16=$(H316)/obj/ios-16.obj
+export DAP_LIBRARY=$(H316)/lib/iolib/lib/dap-lib.lib
+export DUMYX16=$(H316)obj/dumy-x16.obj
+export DECCL=$(H316)obj/deccl.obj
+export SETSIZ=$(H316)/obj/setsiz.obj)
+export SUPER_SYS_FOR_DAP=$(SUPER3_SYS)
+
 export MAKE
 
-all: super3 super2
+all: super3 super2 dap
 
 super2: $(SUPER2_SLST)
 super3: $(SUPER3_SLST)
+dap: $(DAP_SLST)
+
+$(DAP_SLST): $(DAP16) $(IOS16) $(DAP_LIBRARY) $(DUMYX16) $(DECCL) $(SETSIZ)\
+             $(SUPER_SYS_FOR_DAP)
+       ./build_dap16.sh
 
 $(SUPER2_SLST): $(LDR_APM_8K) $(LDR_APM) $(LDR_DUMY) $(PRNTNZ)\
                 $(CLEANUP) $(PAL_AP) 
@@ -32,6 +47,6 @@ $(SUPER3_SLST): $(LDR_APM_8K) $(LDR_APM) $(LDR_DUMY) $(PRNTNZ)\
        ./build_super3.sh
 
 clean:
-       rm -f $(SUPER2_SLST) $(SUPER2_SYS) $(SUPER3_SLST) $(SUPER3_SYS)
+       @rm -f $(SUPER2_SLST) $(SUPER2_SYS) $(SUPER3_SLST) $(SUPER3_SYS)
 
 .PHONY: super3
\ No newline at end of file
diff --git a/systems/build-dap16.sh b/systems/build-dap16.sh
new file mode 100755 (executable)
index 0000000..fc39504
--- /dev/null
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+DO_FILE=dap.do
+
+if [ ! "$MAKE" ]; then
+    echo "Not run from within a Makefile!"
+    exit 4
+fi
+
+cat > $DO_FILE <<EOF
+rest $SUPER_SYS_FOR_DAP
+at ptr $DAP16
+run 36000
+go
+at ptr $IOS16
+go
+at ptr $DAP_LIBRARY
+go
+echo now loaded before dumy:
+run 36002
+echo now satisfying....
+at ptr $DUMYX16
+;IMPORTANT! THERE ARENT NO MORE UNSATISFIED IN THE FIRST
+;EXPORT BLOCK. SECOND BLOCK SEEMS NOT TO TRIGGER DUMMY!
+d p 36004
+go
+go
+
+at ptr $DECCL
+go
+at ptr $SETSIZ
+go
+go
+
+
+r
+at ptp $DAP_SLST
+run 37000
+d a 100
+go
+d a 17777
+go
+
+d p 1000
+d a 120420
+save $DAP_SYS
+
+run 36002
+q
+EOF
+
+h316 $DO_FILE
+rm $DO_FILE
+
+