diff --git a/snes/fatfstest/Makefile b/snes/fatfstest/Makefile index 88aa9cc..8eb5c32 100644 --- a/snes/fatfstest/Makefile +++ b/snes/fatfstest/Makefile @@ -15,6 +15,8 @@ else SDK=/Users/david/.wine/drive_c/65xx_FreeSDK WINE=wine EMU=zsnes + DISASM=/Users/david/Devel/arch/snes/devkit/bin/disasm + UCON=ucon64 endif CC=$(WINE) $(SDK)/bin/WDC816CC.exe @@ -45,8 +47,8 @@ upload: diskutil unmount /Volumes/SNES disasm: $(APP) - rm -rf fatfs.asm - $(DISASM) fatfs.smc > fatfs.asm + rm -rf $(APP).asm + $(DISASM) $(APP) > $(APP).asm repair: $(APP) $(UCON) -snes -chk $(APP) 2>&1 >/dev/null @@ -74,4 +76,4 @@ $(APP): $(OBJS) -N $(OBJS) $(LIBS) -O $@ clean: - rm -vf $(APP) *.obj *.TMP + rm -vf $(APP) $(APP).asm *.obj *.TMP *.bnk *~ diff --git a/snes/fatfstest/debug.c b/snes/fatfstest/debug.c index aba0e66..3db39b2 100644 --- a/snes/fatfstest/debug.c +++ b/snes/fatfstest/debug.c @@ -152,7 +152,7 @@ void printc_packet(unsigned long addr, unsigned int len, byte * packet) printfc("*\n"); clear = 0; } - printfc("%lx:", addr + i); + printfc("%06lX:", addr + i); for (j = 0; j < 16; j++) { printfc(" %x", packet[i + j]); }