How to insert a 08 code type into a pointer-in-pointer code?

Started by CosmoCortney, December 07, 2014, 05:07:14 PM

Previous topic - Next topic

CosmoCortney

Hi, I have recently made a code that contains 5 blocks with pointer in pointer codes.

here is the first part of it:

20432A64 01000005
284E1960 00000100
48000000 804663D4
DE000000 00008180
58010000 00000494
DE000000 00008180
14000018 XXXXXXXX
1400001C XXXXXXXX
14000020 XXXXXXXX
E0000000 80008000

the other parts look the same, except for the underlined part (494).
each following block is 0x4 greater than the previous one. (494 - 4A4).
So I thought using a 08 code type for 58010000 00000494 would make the code much shorter and more userfriendly.

would this be the right way?

20432A64 01000005
284E1960 00000100
48000000 804663D4
DE000000 00008180
18000494 ???????? // what to do with ???????? ? I can't define the value of the code here..
20040004 00000000 // 32bit write; count 4; increment of 0x04
DE000000 00008180
14000018 XXXXXXXX
1400001C XXXXXXXX
14000020 XXXXXXXX
E0000000 80008000