From fe1ac63fc152ea70bc32b9d514841a5f806838ed Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Thu, 19 Oct 2017 17:52:58 +0200 Subject: Fix for PIO driver and its test and deletes build files --- sw/z80/tests/ram/makefile | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'sw/z80/tests/ram/makefile') diff --git a/sw/z80/tests/ram/makefile b/sw/z80/tests/ram/makefile index b8435a7..3db0a67 100644 --- a/sw/z80/tests/ram/makefile +++ b/sw/z80/tests/ram/makefile @@ -18,19 +18,23 @@ CFLAGS := -mz80 \ -I . \ -DDEBUG -LDFLAGS := -mz80 --no-std-crt0 build/crt0.rel \ - --std-c89 -pedantic \ - --code-loc 0x0000 --data-loc 0x2000 +LDFLAGS := -mz80 \ + --no-std-crt0 build/crt0.rel \ + -pedantic -.PHONY: dirs dis clean + # --code-loc 0x0120 \ + # --data-loc 0x2000 + +.PHONY: flash dirs dis clean all: $(BINARY) +flash: $(BINARY) + minipro -p M28C64 -w $< + # build binary $(BINARY): $(OBJECTS) dirs $(CC) $(LDFLAGS) $(OBJECTS) -o $(HEXFILE) - @# xxd -r -p $(HEXFILE) $(BINARY) - @# makebin -s 16384 $(HEXFILE) $(BINARY) - makebin -s 8192 $(HEXFILE) $(BINARY) + makebin -s 8192 -yo 1 $(HEXFILE) $(BINARY) $(OBJECTS): build/%.rel : %.c $(CSOURCES) dirs build/crt0.rel @printf "\n" @@ -44,9 +48,8 @@ dirs: mkdir -p build dis: $(BINARY) - @# z80dasm -a -l -g 0h $< -o build/$(OSNAME).s - dz80 -b -n $< + #dz80 -b -n $< + r2 -a z80 $< -c 'pd 0x10; s 0x100; pd 10; s 0x200; pd 10' clean: - - rm -rd build/* - - rm crt0.rel + - rm -rd build -- cgit v1.2.1