mirror of
https://frontier.innolan.net/github/AmigaExamples.git
synced 2026-09-12 02:21:29 +00:00
Modified build to allow changing base address
This commit is contained in:
+6
-2
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user