From 204c67550aea2f8fef7827365ef180894dd0cb86 Mon Sep 17 00:00:00 2001 From: hachti Date: Fri, 2 Apr 2010 04:47:09 +0000 Subject: [PATCH] *** empty log message *** --- systems/Makefile | 25 ++++-- systems/build_super3_8k.sh | 164 +++++++++++++++++++++++++++++++++++++ 2 files changed, 183 insertions(+), 6 deletions(-) create mode 100755 systems/build_super3_8k.sh diff --git a/systems/Makefile b/systems/Makefile index 3caf770..5fec5b0 100644 --- a/systems/Makefile +++ b/systems/Makefile @@ -1,10 +1,15 @@ # Makefile for system generation # Targets -export SUPER3_SYS=super3.sys export SUPER2_SYS=super2.sys -export SUPER3_SLST=super3.slst export SUPER2_SLST=super2.slst + +export SUPER3_SYS=super3.sys +export SUPER3_SLST=super3.slst + +export SUPER3_8K_SYS=super3_8k.sys +export SUPER3_8K_SLST=super3_8k.slst + export DAP_SYS=dap.sys export DAP_SLST=dap.slst export SUPER_SIMPLE_SYS=super_simple.sys @@ -29,10 +34,12 @@ export SUPER_SYS_FOR_DAP=$(SUPER_SIMPLE_SYS) export MAKE -all: super3 super2 dap +all: super3 super2 super3_8k dap super2: $(SUPER2_SLST) super3: $(SUPER3_SLST) +super3_8k: $(SUPER3_8K_SLST) + dap: $(DAP_SLST) $(SUPER_SIMPLE_SYS): $(LDR_APM_8K) $(PAL_AP) $(LDR_APM) $(LDR_DUMY) @@ -50,8 +57,14 @@ $(SUPER3_SLST) $(SUPER3_SYS): $(LDR_APM_8K) $(LDR_APM) $(LDR_DUMY) $(PRNTNZ)\ $(CLEANUP2) $(BINAL) $(RESTART) ./build_super3.sh +$(SUPER3_8K_SLST) $(SUPER3_8K_SYS): $(LDR_APM_8K) $(LDR_APM) $(LDR_DUMY) $(PRNTNZ)\ + $(CLEANUP2) $(BINAL) $(RESTART) + ./build_super3_8k.sh + clean: - @rm -f $(SUPER2_SLST) $(SUPER2_SYS) $(SUPER3_SLST) $(SUPER3_SYS) $(DAP_SYS) $(DAP_SLST)\ - $(SUPER_SIMPLE_SYS) + @rm -f $(SUPER2_SLST) $(SUPER2_SYS) $(SUPER3_SLST) $(SUPER3_8K_SLST)\ + $(SUPER3_SYS) $(DAP_SYS) $(DAP_SLST)\ + $(SUPER_SIMPLE_SYS) + +.PHONY: super3 super2 super3_8k super_simple -.PHONY: super3 \ No newline at end of file diff --git a/systems/build_super3_8k.sh b/systems/build_super3_8k.sh new file mode 100755 index 0000000..6955716 --- /dev/null +++ b/systems/build_super3_8k.sh @@ -0,0 +1,164 @@ +#!/bin/sh + +TARGET_SYS=$SUPER3_8K_SYS +TARGET_SLST=$SUPER3_8K_SLST + +CORESIZE=8 + +echo "TARGET_SYS --> $TARGET_SYS" +echo "TARGET_SLST --> $TARGET_SLST" + +LAST_LOC=$((($CORESIZE*1024)-1)) +BASE=$(($CORESIZE*1024-010000)) +RESTART_BASE=$(($BASE+02000)) + +SUPER_BASE=$RESTART_BASE +LAST_USER_LOC=$(($SUPER_BASE-1)) + +CLEANUP2_BASE=$(($BASE+02100)) +PRNTNZ_BASE=$(($BASE+02200)) + +LOADER_BASE=$(($BASE+03000)) +LOADER_LAST_CLEAR_LOC=$(($LOADER_BASE+077)) +LOADER_LIMIT=$(($LOADER_BASE+02000)) +LOADER_START=$(($LOADER_BASE+03000)) + +BINAL_BASE=$(($BASE+07000)) +PAL_AP_BASE=$BINAL_BASE +PUNCH_BASE=$BINAL_BASE +PUNCH_LAST_LOC=$(($BINAL_BASE+0577)) + +LDR8_BASE=013000 +LDR8_START=016000 +LDR8_RESTART=016003 +LDR8_MAP=016002 + +LOAD_LDR_APM=true +LOAD_CLEANUP2=true +LOAD_RESTART=true +LOAD_PRNTNZ=true +LOAD_PAL_AP=true +LOAD_BINAL= + +DO_FILE=super3_8k.do + +octalize(){ + for n in $*; do + eval "$n=\`printf \"0%o\" \$$n\`" + eval "printf \"%23s --> %05o\n\" $n \$$n" + done +} + +FRESH_LOAD="true" + +load(){ + printf "Load: %20s --> %o\n" $1 $2 + + ST=$LDR8_RESTART + if [ "$FRESH_LOAD" ]; then + ST=$LDR8_START + FRESH_LOAD= + fi + + cat >>$DO_FILE < $2 $ST + at ptr $1 + d a $2 + d p $ST + go + go +EOF +} + +boot(){ + echo "Boot: $1" + cat > $DO_FILE <> $DO_FILE <> $DO_FILE <