test reloacte via hook
This commit is contained in:
parent
c1d066ae3c
commit
0b9ed151fa
@ -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
5
snes/fatfstest/hook.asm
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
HOOK SECTION
|
||||||
|
XDEF START
|
||||||
|
HOOK:
|
||||||
|
jsr >START
|
||||||
|
brk
|
||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user