WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: live2play on June 09, 2010, 11:24:44 PM

Title: 06/07 Code Type with Repetitive pattern
Post by: live2play on June 09, 2010, 11:24:44 PM
I understand how to use the 06/07 code type.  However, what if I needed to write, for instance, 380 bytes of 00000000.  Currently, I would need to actually type in 380 bytes worth of zeroes.  Is there a way to just repeat the 00000000 as many times as needed?
Title: Re: 06/07 Code Type with Repetitive pattern
Post by: wiiztec on June 10, 2010, 12:03:17 AM
00XXXXXX 017B0000

or

02XXXXXX 00BD0000

or

08XXXXXX 00000000
205E0004 00000000

I assumed the value 380 was in decimal

Title: Re: 06/07 Code Type with Repetitive pattern
Post by: live2play on June 10, 2010, 12:28:18 AM
So, you don't use a 06/07 code type?

Also, if you could please provide explanation of the three options, I would greatly appreciate it.
Title: Re: 06/07 Code Type with Repetitive pattern
Post by: dcx2 on June 10, 2010, 04:39:21 AM
8- and 16-bit writes (but not 32-bit writes) have an optional "fill" parameter.
Quote
CST0: 8bits Write & Fill

00______ YYYY00XX : 8bits ram write and fill (ba) writes XX YYYY+1 times at ba+address
Title: Re: 06/07 Code Type with Repetitive pattern
Post by: wiiztec on June 10, 2010, 05:00:57 AM
Quote from: dcx2 on June 10, 2010, 04:39:21 AM
8- and 16-bit writes (but not 32-bit writes) have an optional "fill" parameter.
Quote
CST0: 8bits Write & Fill

00______ YYYY00XX : 8bits ram write and fill (ba) writes XX YYYY+1 times number of instances at and ahead of ba+address

more understandable wording
Title: Re: 06/07 Code Type with Repetitive pattern
Post by: live2play on June 10, 2010, 05:03:37 AM
Perfect!  Thank you both.  Wiiztec it was great to see the three forms.  Thanks!