new packet dump

This commit is contained in:
David Voswinkel 2009-06-14 14:17:52 +02:00
parent 1100333487
commit 622841e70a
2 changed files with 6 additions and 4 deletions

View File

@ -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 *~

View File

@ -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]);
}