discard85: first cut at 8085 discard hack for the assembler
authorAlan Cox <alan@linux.intel.com>
Tue, 5 Mar 2019 00:56:27 +0000 (00:56 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 5 Mar 2019 00:56:27 +0000 (00:56 +0000)
Not yet tested

Kernel/tools/discard85 [new file with mode: 0755]

diff --git a/Kernel/tools/discard85 b/Kernel/tools/discard85
new file mode 100755 (executable)
index 0000000..d2d2046
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+#      ACK thinks we are the assembler. We will play with the incoming
+#      stream to move .text and .rom to .discard and feed it to the assembler
+#
+ACK_ROOT=$(which ack | sed -e "s/\/bin\/ack//")
+X=$(mktemp)
+(echo ".sect .text"
+ echo ".sect .rom"
+ echo ".sect .data"
+ echo ".sect .bss"
+ echo ".sect .common"
+ echo ".sect .discard") >$X
+sed -e "s/\.text/\.discard/" | sed -e "s/\.rom/\.discard/" | cat $X - |        
+       $ACK_ROOT/lib/ack/cpm/as
+rm $X