Skip to content

Commit 7c6612f

Browse files
committed
Added pseudocode for new ramhole scanner.
1 parent 57b415f commit 7c6612f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

MerpMod/RamHoleScanner.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ if(pRamVariables->ScannedAddress > 0xBFFF)
1616
//pRamVariables->ScannedAddress USHORT
1717
//pRamVariables->ScannedValue USHORT
1818
//pRamVariables->ScannedtackPointer ULONG
19+
20+
//SCANNER:
21+
//Initialize: set scan range 0xFFFF0000 - 0xFFFFBFFF (SH7058)
22+
//Set minimum byte size for romhole.
23+
//Pop range from array.
24+
//Call range reader.
25+
26+
//RANGE READER:
27+
//init vars.
28+
//Read @ address
29+
//If same as previous value, increment counter
30+
//Keep going.
31+
//
32+
//If minimum size is met, store the start address in array.
33+
//Keep going
34+
//When end is found (different value or range bound) store end address (and count? somewhat redundant.) in array.
35+
//
36+
//If not at end of range, repeat range scan with new start bound!.
37+
//Else return
1938
}
2039

2140
#endif

0 commit comments

Comments
 (0)