06/07 Code Type with Repetitive pattern

Started by live2play, June 09, 2010, 11:24:44 PM

Previous topic - Next topic

live2play

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?

wiiztec

00XXXXXX 017B0000

or

02XXXXXX 00BD0000

or

08XXXXXX 00000000
205E0004 00000000

I assumed the value 380 was in decimal

If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

live2play

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.

dcx2

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

wiiztec

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
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

live2play

Perfect!  Thank you both.  Wiiztec it was great to see the three forms.  Thanks!