test reloacte via hook

This commit is contained in:
David Voswinkel 2009-06-05 00:05:18 +02:00
parent c1d066ae3c
commit 0b9ed151fa
3 changed files with 9 additions and 4 deletions

View File

@ -66,15 +66,15 @@ hook.obj: hook.asm
$(APP): $(OBJS) $(APP): $(OBJS)
$(LD) -HB -M21 -V -T -Pff \ $(LD) -HB -M21 -V -T -Pff \
-C008000,000000 -U000000,000000 \ -C3e8000,000000 -U000000,000000 \
-Avectors=FFE4,7FE4 \ -Avectors=FFE4,7FE4 \
-Aregistration_data=FFB0,7FB0 \ -Aregistration_data=FFB0,7FB0 \
-Aressource=3f8000,8000 \ -Aressource=3f8000,8000 \
-Ahook=0108000,0000 \
-N $(OBJS) $(LIBS) -O $@ -N $(OBJS) $(LIBS) -O $@
ucon64 -snes -chk $(APP) 2>&1 >/dev/null ucon64 -snes -chk $(APP) 2>&1 >/dev/null
#-Ahook=008000,0000 \
clean: clean:
rm -vf $(APP) *.obj *.TMP rm -vf $(APP) *.obj *.TMP

5
snes/fatfstest/hook.asm Normal file
View File

@ -0,0 +1,5 @@
HOOK SECTION
XDEF START
HOOK:
jsr >START
brk

View File

@ -119,7 +119,7 @@ FRESULT scan_files (char* path){
return res; return res;
} }
void wait(){ void wait(void){
printfc("SNES::wait: press A to continue\n"); printfc("SNES::wait: press A to continue\n");
enablePad(); enablePad();
//waitForVBlank(); //waitForVBlank();
@ -152,7 +152,7 @@ void main(void) {
put_rc(f_mount(0, &fatfs[0])); put_rc(f_mount(0, &fatfs[0]));
#if 0 #if 1
printfc("SNES::main: Try to get free\n"); printfc("SNES::main: Try to get free\n");
res = f_getfree("", &p2, &fs); res = f_getfree("", &p2, &fs);
if (res) if (res)