o get relocate working

This commit is contained in:
david 2009-06-05 18:18:09 +02:00
parent 74e238bdca
commit f5eb151288
3 changed files with 22 additions and 21 deletions

View File

@ -8,7 +8,8 @@ ifeq ($(PLATFORM),Linux)
SDK=/home/david/.wine/drive_c/65xx_FreeSDK SDK=/home/david/.wine/drive_c/65xx_FreeSDK
WINE=wine WINE=wine
EMU=../../tools/bsnes/bsnes EMU=../../tools/bsnes/bsnes
EMU_DEBUG=/home/david/Devel/arch/snes/tools/zsnes_linux_debug151/src/zsnesd -d DISASM=/home/david/Devel/arch/snes/devkit/bin/disasm
UCON=ucon64
else else
# Mac Wine # Mac Wine
SDK=/Users/david/.wine/drive_c/65xx_FreeSDK SDK=/Users/david/.wine/drive_c/65xx_FreeSDK
@ -32,7 +33,7 @@ OBJS=hook.obj StartupSnes.obj main.obj pad.obj PPU.obj debug.obj ressource.obj d
APP=fatfs.smc APP=fatfs.smc
GFX=debugfont GFX=debugfont
all: $(APP) all: $(APP) repair
run: run:
$(EMU) $(APP) $(EMU) $(APP)
@ -46,33 +47,33 @@ upload:
sync sync
diskutil unmount /Volumes/SNES diskutil unmount /Volumes/SNES
crc: disasm: $(APP)
python ../../scripts/crc_xmodem.py $(APP) rm -rf fatfs.asm
$(DISASM) fatfs.smc > fatfs.asm
StartupSnes.obj: StartupSnes.asm StartupSnes.obj: StartupSnes.asm
$(AS) -V $? $(AS) -V $?
ressource.obj: ressource.asm ressource.obj: ressource.asm
$(AS) -V $? $(AS) -V $?
hook.obj: hook.asm hook.obj: hook.asm
$(AS) -V $? $(AS) -V $?
%.obj: %.c %.obj: %.c
$(CC) -wl -wp -sop -ML -I $(INC) $? $(CC) -wl -wp -sop -ML -I $(INC) $?
$(APP): $(OBJS) $(APP): $(OBJS)
$(LD) -HB -M21 -V -T -Pff \ $(LD) -B -HB -M21 -V -T -Pff \
-C3e8000,000000 -U000000,000000 \ -C3e8000,1f0000 -U000000,000000 \
-Avectors=FFE4,7FE4 \ -Avectors=FFE4,7FE4 \
-Aregistration_data=FFB0,7FB0 \ -Aregistration_data=FFB0,7FB0 \
-Aressource=3f8000,8000 \ -Aressource=18000,8000 \
-Ahook=0108000,0000 \ -Ahook=008000,0000 \
-N $(OBJS) $(LIBS) -O $@ -N $(OBJS) $(LIBS) -O $@
ucon64 -snes -chk $(APP) 2>&1 >/dev/null repair: $(APP)
$(UCON) -snes -chk $(APP) 2>&1 >/dev/null
rm -rf fatfs.bak

View File

@ -147,7 +147,7 @@ void main(void) {
debug_enable(); debug_enable();
printfs(0,"FATFS OPTIXX.ORG "); printfs(0,"FATFS OPTIXX.ORG ");
//wait(); wait();
printfc("SNES::main: Try to init disk\n"); printfc("SNES::main: Try to init disk\n");
put_rc(f_mount(0, &fatfs[0])); put_rc(f_mount(0, &fatfs[0]));

View File

@ -1,4 +1,4 @@
ressource .section resource .section
; XDEF __title_map ; XDEF __title_map
;__title_map: ;__title_map: