Add a da65 65186 test
This commit is contained in:
@@ -19,6 +19,8 @@ ifdef QUIET
|
||||
endif
|
||||
|
||||
CL65 := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
|
||||
CA65 := $(if $(wildcard ../../bin/ca65*),../../bin/ca65,ca65)
|
||||
LD65 := $(if $(wildcard ../../bin/ld65*),../../bin/ld65,ld65)
|
||||
DA65 := $(if $(wildcard ../../bin/da65*),../../bin/da65,da65)
|
||||
|
||||
WORKDIR = ../../testwrk/dasm
|
||||
@@ -33,7 +35,7 @@ START = --start-addr 0x8000
|
||||
.PHONY: all clean
|
||||
|
||||
SOURCES := $(wildcard *.s)
|
||||
BINS = $(SOURCES:%disass.s=$(WORKDIR)/%reass.bin)
|
||||
BINS = $(SOURCES:%disass.s=$(WORKDIR)/%reass.bin) $(WORKDIR)/65816-reass.bin
|
||||
CPUS = $(SOURCES:%-disass.s=%)
|
||||
|
||||
all: $(BINS)
|
||||
@@ -61,5 +63,18 @@ endef # DISASS_template
|
||||
|
||||
$(foreach cpu,$(CPUS),$(eval $(call DISASS_template,$(cpu))))
|
||||
|
||||
$(WORKDIR)/test65816.bin: test65816.s | $(WORKDIR)
|
||||
$(CA65) -o $(WORKDIR)/test65816.o $<
|
||||
$(LD65) -o $@ -C 65816.cfg $(WORKDIR)/test65816.o
|
||||
|
||||
$(WORKDIR)/65816-reass.s: $(WORKDIR)/test65816.bin
|
||||
$(DA65) --cpu 65816 -i 65816.info -o $@ $<
|
||||
|
||||
$(WORKDIR)/65816-reass.bin: $(WORKDIR)/65816-reass.s $(ISEQUAL)
|
||||
$(if $(QUIET),echo dasm/65816-reass.bin)
|
||||
$(CA65) -o $(WORKDIR)/65816-reass.o $<
|
||||
$(LD65) -o $@ -C 65816.cfg $(WORKDIR)/65816-reass.o
|
||||
$(ISEQUAL) --binary $(WORKDIR)/test65816.bin $@
|
||||
|
||||
clean:
|
||||
@$(call RMDIR,$(WORKDIR))
|
||||
|
||||
Reference in New Issue
Block a user