o make crc an 8mb game

o add rand garbage in banks 3-8 and banks 9-16
This commit is contained in:
optixx
2009-04-26 16:22:41 +02:00
parent aa29d483eb
commit 096ad71b4e
5 changed files with 22 additions and 13 deletions

View File

@@ -43,11 +43,25 @@ debugger:
$(EMU_DEBUG) $(APP)
upload:
ucon64 $(APP)
ucon64 -chk $(APP)
cp -rv $(APP) /Volumes/SNES
sync
diskutil unmount /Volumes/SNES
rand:
dd if=/dev/urandom of=tmp.rand bs=32k count=6
dd if=$(APP) of=tmp.app bs=32k count=2
cat tmp.app tmp.rand > $(APP)
rm tmp.rand tmp.app
ucon64 -chk $(APP)
rand16:
dd if=/dev/urandom of=tmp.rand bs=32k count=14
dd if=$(APP) of=tmp.app bs=32k count=2
cat tmp.app tmp.rand > $(APP)
rm tmp.rand tmp.app
ucon64 -chk $(APP)
crc:
python ../../scripts/crc_xmodem.py $(APP)

View File

@@ -207,7 +207,7 @@ GAME_TITLE FCC /GAME TITLE !/
;012345678901234567890;
MAP_MODE BYTE $20
CARTRIDGE_SIZE BYTE $00
ROM_SIZE BYTE $08
ROM_SIZE BYTE $09
RAM_SIZE BYTE $00
DESTINATION_CODE BYTE $00
FIXED_VALUE1 BYTE $33

View File

@@ -33,7 +33,6 @@ void main(void) {
char line_header[32] = "BANK CRC ADDR 123456789ABCDEF";
char line[32] = " ";
char test_buffer[] = "da";
char far * pointer;
unsigned long addr;
initInternalRegisters();
@@ -47,20 +46,14 @@ void main(void) {
writeln(line_header,0);
while(1){
pointer = (void*)0x008000;
addr = 0x008000;
crc02 = crc_update(test_buffer,2);
//crc01 = crc_update(pointer,255);
for(j=0; j<16; j++) {
//crc01 = crc_update(pointer,0x8000);
crc01 = crc_update_mem(addr,0x8000);
int2hex((unsigned long)j,&line[0],4);
int2hex((unsigned long)crc01,&line[5],4);
int2hex((unsigned long)addr,&line[10],6);
writeln(line,j+1);
pointer += 0x010000;
addr += 0x010000;
}
while(!pad1.start) {