diff --git a/snes/fatfstest/Makefile b/snes/fatfstest/Makefile index 6f0a838..8c9c055 100644 --- a/snes/fatfstest/Makefile +++ b/snes/fatfstest/Makefile @@ -66,15 +66,15 @@ hook.obj: hook.asm $(APP): $(OBJS) $(LD) -HB -M21 -V -T -Pff \ - -C008000,000000 -U000000,000000 \ + -C3e8000,000000 -U000000,000000 \ -Avectors=FFE4,7FE4 \ -Aregistration_data=FFB0,7FB0 \ -Aressource=3f8000,8000 \ + -Ahook=0108000,0000 \ -N $(OBJS) $(LIBS) -O $@ ucon64 -snes -chk $(APP) 2>&1 >/dev/null - #-Ahook=008000,0000 \ clean: rm -vf $(APP) *.obj *.TMP diff --git a/snes/fatfstest/hook.asm b/snes/fatfstest/hook.asm new file mode 100644 index 0000000..b6c81ab --- /dev/null +++ b/snes/fatfstest/hook.asm @@ -0,0 +1,5 @@ +HOOK SECTION + XDEF START +HOOK: + jsr >START + brk diff --git a/snes/fatfstest/main.c b/snes/fatfstest/main.c index 3bf1d5d..f6b2792 100644 --- a/snes/fatfstest/main.c +++ b/snes/fatfstest/main.c @@ -119,7 +119,7 @@ FRESULT scan_files (char* path){ return res; } -void wait(){ +void wait(void){ printfc("SNES::wait: press A to continue\n"); enablePad(); //waitForVBlank(); @@ -152,7 +152,7 @@ void main(void) { put_rc(f_mount(0, &fatfs[0])); -#if 0 +#if 1 printfc("SNES::main: Try to get free\n"); res = f_getfree("", &p2, &fs); if (res)