summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2006-08-28 00:19:04 +0000
committerIan C <ianc@noddybox.co.uk>2006-08-28 00:19:04 +0000
commit8092443b5ed2d33b076749387577f4e1466735fe (patch)
tree0246c56a9ff8801a4a1975574e6b2608e9fb9ffc
parent02a2bade0cb37c52397474400d05bed8edc85791 (diff)
Changes so that labels for zexdoc and zexall are loaded into EMMA
-rw-r--r--Makefile12
-rw-r--r--runall1
-rw-r--r--rundoc9
3 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 25f659c..e83b30d 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@
#
# -------------------------------------------------------------------------
#
-# $Id: Makefile,v 1.6 2006-08-27 23:55:05 ianc Exp $
+# $Id: Makefile,v 1.7 2006-08-28 00:19:04 ianc Exp $
#
# This CFLAGS assumes that gcc is being used.
@@ -55,13 +55,17 @@ emucpm.hex: emucpm.z80
tpasm -P Z80 -o intel emucpm.hex emucpm.z80
zexdoc.hex: zexdoc.z80
- tpasm -P Z80 -o intel zexdoc.hex zexdoc.z80
+ tpasm -P Z80 -o text _tmp -o intel zexdoc.hex zexdoc.z80
+ tail +4 _tmp | awk '{printf("%s 0x%s\n",$$2,$$1);}' > zexdoc.lbl
+ rm -f _tmp
zexall.hex: zexall.z80
- tpasm -P Z80 -o intel zexall.hex zexall.z80
+ tpasm -P Z80 -o text _tmp -o intel zexall.hex zexall.z80
+ tail +4 _tmp | awk '{printf("%s 0x%s\n",$$2,$$1);}' > zexall.lbl
+ rm -f _tmp
clean:
- rm -f $(TARGET) $(OBJECTS) core $(TARGET).exe *.hex
+ rm -f $(TARGET) $(OBJECTS) core $(TARGET).exe *.hex *.lbl
depend:
makedepend -- $(CFLAGS) -- $(SOURCE)
diff --git a/runall b/runall
index 8535d19..6817261 100644
--- a/runall
+++ b/runall
@@ -1,4 +1,5 @@
i emucpm.hex
i zexall.hex
+D zexall.lbl
s
r 0x100
diff --git a/rundoc b/rundoc
index 2324112..3cd0df4 100644
--- a/rundoc
+++ b/rundoc
@@ -1,6 +1,7 @@
i emucpm.hex
i zexdoc.hex
-s
-r 0x100
-#p 0x100
-#n
+D zexdoc.lbl
+#s
+#r 0x100
+p 0x100
+n