Slide code?

Started by BuckM, February 03, 2009, 05:50:02 AM

Previous topic - Next topic

BuckM

Hi, I just got my usbgecko yesterday and I was wondering if there's any way to make slide codes (I need to write a block of 01s :p), Thanks!

Romaap

what do you mean with slide codes?
btw, check the codetypes page for all the codetypes

BuckM

Thanks, I've already looked at the codetypes though, I just can't figure out which one to use. Anyway heres my code as it stands:

No More Heroes USA
All 49 Lovikov Balls
4A000000 92000000
14F070B4 01010101
14F070B8 01010101
14F070BC 01010101
14F070C0 01010101
14F070C4 01010101
14F070C8 01010101
14F070CC 01010101
14F070D0 01010101
14F070D4 01010101
14F070D8 01010101
14F070DC 01010101
14F070E0 01010101
14F070E4 01010155
E0000000 80008000

As you can see I'm just writing 01 49 times, is there a more efficient way to do this? (Btw, slide codes were used in codebreakers for gba: write xx data, this many times, at this interval)

Romaap

#3
you can use:
00______ YYYY00XX : 8bits ram write and fill (ba) writes XX YYYY+1 times at ba+address

you want to write 01 0x31 (hex for 49) times so you do it like this:

10F070B4 00310001

this will write 01 0x31 times

hetoan2

that code isn't the same by the way.

4A000000 92000000
10F070B4 00300001
14F070E4 01010155
E0000000 80008000

that would be the EXACT code you wrote simplified.

You have 48 01's excluding the line with the 55.

BuckM

Lol, thanks, but the 55 actually wasn't part of the code per se, I was just using 32 bit and got too lazy to switch over to a 16 and an 8 :p