# Assembler wrapper for simh h316
if [ ! $1 ] ; then
- echo "Argument mising!"
+ echo "Argument missing!"
exit 2
fi
+for n in $*; do
+ if [ $n == "/v" ]; then
+ VERBOSE=yes
+ fi
+done
+
name=`basename $1 .asm`
listfile=$name.lst
cat > $name.go <<EOF
rest $H316/sys/dap.sys
-d a 120420
+d a 120420
+d p 1000
at ptr $name.par
at ptp $name.obj
at tty3 $listfile
quit
EOF
-h316 $name.go > /dev/null
+if [ "$VERBOSE" == "yes" ]; then
+ h316 $name.go
+else
+ h316 $name.go > /dev/null
+fi
rm -f $name.par
rm -f $name.go
run 36002
echo now satisfying....
at ptr $H316/obj/dumy-x16.obj
-go
+;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 $H316/obj/deccl.obj
go
at ptr $H316/obj/setsiz.obj
go
go
-;at ptp $H316/slst/dap-auto.slst
-;run 37000
-;d a 400
-;go
-;d b 13000
-;go
+
+r
+at ptp dap-auto.slst
+run 37000
+d a 100
+go
+d a 17777
+go
run 36002
EOF
export MAKE
-MODULES = o$$al o$$la o$$pl o$$pb i$$pa
+MODULES = o$$al o$$la o$$pl o$$pb i$$pa dummy-force
FRTN_COMMAND = frtn
ASM_COMMAND = asm
+
# These are the selfmade modules
# Binary HS Punch routine USED by DAP-16
obj/O$PB
-# Paper tape listing routine
+# Paper tape listing routine - Lets see, if DAP can handle that
obj/O$PL
-# O$AL ASR comfort routine
+# O$AL ASR comfort routine Hm, let's try it out....
obj/O$AL
-# Huge Line printer routine
+# Huge Line printer routine Rocking now?
obj/O$LA
# Read Paper tape sources
obj/I$PA
-# And here come the original ones
+# Original ASR listing routine Not needed anymore
+#org/O$AH
+
+# And here come the original ones
org/I$AB
org/I$AI
org/O$AB
org/O$AI
-# Original ASR listing routine
-org/O$AH
-
-
+#klappt nicht!
+#obj/FUCK
\ No newline at end of file
# These are the selfmade modules
# Binary HS Punch routine
-#obj/O$PB
+obj/O$PB
#Paper tape listing routine
-#obj/O$PL
+obj/O$PL
# O$AL ASR comfort routine
obj/O$AL
# Huge Line printer routine
-#obj/O$LA
+obj/O$LA
# Read Paper tape sources
-#obj/I$PA
+obj/I$PA
# And here come the original ones
org/I$AB
org/I$AI
-#org/O$AB
-#org/O$AI
+org/O$AB
+org/O$AI
#org/O$AH Original ASR listing routine
#org/O$AH
********************************************************************************
*
REL RELOCATEABLE MODE
+ ORG 0
*
* CONFIGURATION
LPP DEC 60 DATA LINES PER PAGE (WITHOUT HEADING ETC.)
--- /dev/null
+* SUPERCOOLES SONDERPROGRAMM!
+*
+ ABS
+ ORG '1000
+*
+*
+*
+ LDA =-50
+ STA LCNT LOOP COUNTER
+ CRA
+ STA 0 ACTIVE PATTERN
+ LDA ='125252
+ IAB
+ LDA ='000770
+ STA MUS
+*
+L1S LDA =-'47777 INNER DELAY
+ STA CNT
+ LDA MUS
+L1 IRS CNT
+ JMP *-1
+ STA MUS
+*
+ LDA MUS
+ JST* DISP,1 CALL INDEXED TO TABLE,HUI!
+ STA MUS
+*
+ IRS LCNT
+ JMP L1S NOT READY TO CHANGE PATTERN
+*
+ LDA =-50 REINITIALIZE LOOP COUNTER
+ STA LCNT
+*
+ LDA 0
+ AOA
+ ANA =7
+ STA 0
+*
+ JMP L1S LOOP AGAIN INNER
+*
+MUS DEC 0
+LCNT DEC 0
+CNT DEC 0
+*
+DISP DAC P0
+ DAC P0
+ DAC P2
+ DAC P3
+ DAC P4
+ DAC P5
+ DAC P6
+ DAC P7
+*
+*
+P0 DAC **
+ LLR 1
+ JMP* P0
+P1 DAC **
+ LRR 1
+ JMP* P1
+P2 DAC **
+ LLR 2
+ JMP* P2
+P3 DAC **
+ LRR 2
+ JMP* P3
+P4 DAC **
+ CMA
+ JMP* P4
+P5 DAC **
+ IAB
+ JMP* P5
+P6 DAC **
+ ICA
+ JMP* P6
+P7 DAC **
+ ALR 1
+ JMP* P7
+*
+*
+* THAT'S IT!
+*
+ END
go
go
-
echo *** Loading $BINAL
at ptr $BINAL
d a 37000
go
go
+
+;echo *** Loading $PAL-AP
+;at ptr $PAL_AP
+;d a 37000
+;d p 16003
+;go
+;go
+
; Print memory map
go 16002