I wrote some C0 code which does the searching and ram writing just like an F6 code.
Maybe someone likes it. No guarantee for correctness, but it worked once I tried.
Do not have a big gap between the starting and ending point otherwise it´ll lag the game for a long time.
Since the coding can easily be edited, it´s more flexible than an F6 code. It´s more hassle overall to use it though.
#Start#
lis r12, 0xTTTT
#End#
lis r11, 0xNNNN
#Search Line#
lis r10, 0xLLLL
ori r10, r10, 0xLLLL
lis r9, 0xMMMM
ori r9, r9, 0xMMMM
_LOOP:
#Read From Memory#
lwz r8, 0 (r12)
lwz r7, 4 (r12)
#Compare#
cmpw r8, r10
bne- _CONT
cmpw r7, r9
bne- _CONT
#Store#
lis r8, 0xVVVV
ori r8, r8, 0xVVVV
stw r8, 0xSS (r12)
_CONT:
addi r12, r12, 4
#Until The End#
cmpw r11, r12
bgt- _LOOP
---
VVVVVVVV = Value to write
SS = Offset for the write
LLLLLLLL = First value to search
MMMMMMMM = Second value to search
TTTT = Starting Address
NNNN = Ending Address
Cool stuff.