First and more importantly:
THIS IS NOT MEANT TO INSULT YOU IN ANY WAY, ONLY TO HELP YOU BETTER UNDERSTAND CODDING A LITTLE BETTER!!
Second: Just so you know, this code may work fine but is rather redundant, because you either use "2" in the beginning of the lines, since you're writing in 8-bit, or use a "0" and use all the line... like:
0857947C
00000005 means you'll write:
05 to the address line 0857947C
00 to the address line 0857947D
00 to the address line 0857947E
00 to the address line 0857947F
But you only want the 05 in 0857947C, so you use
2857947C 00000005
OR
following the same logic, since you want to write in successive bits you could use:
08579499 05050505
is the same as
28579499 00000005
2857949A 00000005
2857949B 00000005
2857949C 00000005
Now you can make a simpler, shorter and more efficient code!
For more info:
http://www.maxconsole.com/maxcon_forums/threads/293144-Gateway-ARCode-Cheat-Sheet
Great code btw! Thanx!
EDIT:
Also for this code you could do a trick using the C0000000 XXXXXXXX:
This code allows you to insert a serie of repetitive codes (as long as they have a fix + factor), like this case, since all your codes have a +2 in the sequence.
So you could do them like this:
C0000000 00000066 - this tells how many time the code will repeat (102 in HEX is 66).
1856C24A 000003E7 - the acctual address we're starting with.
DC000000 00000002 - the + factor, in this case 2.
D2000000 00000000 - To end the code.
And that's it... we transformed that huge line of codes to a simple 4 liner that does the same!
for more info read the same site!
you could also make it "shorter" by compressing two lines in one:
1856C24A 000003E7
1856C24C 000003E7
is the same as
0856C24A 03E703E7
So your code could be
C0000000 00000033 - since now we have half the lines as before.
1856C24A 03E703E7 - since we're writing "two codes at the same time".
DC000000 00000004 - since now the addresses are "+(2+2)"
D2000000 00000000 - the same end... as all things in life has the same end...