diff --git a/src/boards/unrom512.c b/src/boards/unrom512.c index 25efab3..45d0e05 100644 --- a/src/boards/unrom512.c +++ b/src/boards/unrom512.c @@ -193,7 +193,8 @@ static void UNROM512LSync() { } else if (latche==0x10) { - for(uint32 i=0;i<(ROM_size*4);i++) + uint32 i; + for(i=0;i<(ROM_size*4);i++) inc_flash_write_count(i>>2,i<<12); memset(flashdata,0xFF,ROM_size*0x4000); //Erasing the rom chip as instructed. Crash rate calulated to be 99.9% :) } @@ -261,4 +262,4 @@ void UNROM512_Init(CartInfo *info) { } AddExState(&latche, 1, 0, "LATC"); AddExState(&bus_conflict, 1, 0, "BUSC"); -} \ No newline at end of file +}