Modified build to allow changing base address

This commit is contained in:
alpine9000
2016-03-10 08:45:02 +11:00
parent 25031ddb67
commit 82c28097a2
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -5,6 +5,10 @@ HOST_CFLAGS=$(HOST_WARNINGS)
IMAGECONDIR=../tools/imagecon
IMAGECON=$(IMAGECONDIR)/out/imagecon
ifndef BASE_ADDRESS
BASE_ADDRESS=70000
endif
all: bin out $(MAKEADF) $(FLOPPY)
gdrive: all
@@ -42,7 +46,7 @@ out/bootblock.bin: out/bootblock.o
vlink -brawbin1 $< -o $@
out/bootblock.o: ../shared/bootblock.s out/main.bin
vc -c $< -o $@
vasmm68k_mot -DBASE_ADDRESS="\$$$(BASE_ADDRESS)" -Fhunk -phxass -opt-fconst -nowarn=62 -quiet $< -o $@ -I/usr/local/amiga/os-include
out/main.o: $(MODULE) $(EXTRA)
@# -v
@@ -52,7 +56,7 @@ out/main.o: $(MODULE) $(EXTRA)
out/main.bin: out/main.o $(EXTRAOBJS)
@#-T ../link.script
vlink -Ttext 0x70000 -brawbin1 $< $(EXTRAOBJS) -o $@
vlink -Ttext 0x$(BASE_ADDRESS) -brawbin1 $< $(EXTRAOBJS) -o $@
clean:
rm -rf out bin *~
+1 -1
View File
@@ -10,7 +10,7 @@ bootEntry:
;; a6 = Exec base
;; a1 = trackdisk.device I/O request pointer
lea $70000,a5 ; main.s entry point
lea BASE_ADDRESS,a5 ; main.s entry point
;; Load the progam from the floppy using trackdisk.device