Skip to content

Commit

Permalink
Increase block size for faster dumping
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Oct 7, 2015
1 parent 6badffd commit 4a1ac53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/main.c
Expand Up @@ -30,16 +30,16 @@ void dump(void) {
0x11, // Command
0, // ROM address
0x08001000, // Virtual address
0x1, // Size (in 0x200 byte blocks)
0x8, // Size (in 0x200 byte blocks)
};

size_t i;
for (i = 0x0; i < 0x04000000; i += 0x200) {
for (i = 0x0; i < 0x04000000; i += 0x1000) {
printf("Dumping %07X...\n", i);
cmd[1] = i,
writeChange(cmd);
readChange();
fwrite(GBAROM + (0x1000 >> 1), 0x200, 1, f);
fwrite(GBAROM + (0x1000 >> 1), 0x1000, 1, f);
}

printf("Done!\n");
Expand Down

0 comments on commit 4a1ac53

Please sign in to comment.