[Simh] Been off the job too long

Don North ak6dn at mindspring.com
Wed Mar 30 20:18:49 EDT 2016


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
> Simh at trailing-edge.com
> 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



More information about the Simh mailing list