On 3/30/2016 12:58 PM, Bob Supnik wrote:
How can I get the macro11 cross-assembler to output absolute binary format? Or
is there a post-processing program that I've forgotten about?
Thanks,
/Bob Supnik
_______________________________________________
Simh mailing list
[email protected]
http://mailman.trailing-edge.com/mailman/listinfo/simh
Use the 'dumpobj' program included with the macro11 sources.
Here is a simple makefile I use to assemble .mac to .obj to .bin:
# makefile for pdp11 bin code
.PRECIOUS: %.obj
MACOPT ?= -d md -d me -e bex -yus
%.obj : %.mac mac/*.mac
macro11 $< $(MACOPT) -l $*.lst -o $@
@-perl -i -n -e 'print unless m/^\s*\d+\s+.n?list\s*$$/i;' $*.lst
@-rm -f $*.lst.bak
%.bin : %.obj
dumpobj $< $@ > $*.dmp
# all the files to be made
BIN=divtst.bin multst.bin prftst.bin memx.bin echo1.bin echo2.bin
all: $(BIN)
clean:
rm -f $(BIN) $(BIN:.bin=.obj) $(BIN:.bin=.lst) $(BIN:.bin=.dmp)
# the end
_______________________________________________
Simh mailing list
[email protected]
http://mailman.trailing-edge.com/mailman/listinfo/simh