Mexjoker95 Member
Posts : 15 Join date : 2010-02-01
| Subject: DMA tutorial Tue Feb 09, 2010 3:48 pm | |
| - Quote :
- Lets try to punch some information threw your heads.
For all that you don't know the format of DMA it is as so:
0xFFFFFFFF 0xPointer you have found 0xYour Offset 0xModded values
Ok well lets break it down a little more..
DMA'd data is usually stored in a list with other DMA'd things that relate to it. For example if you were looking for ammo you might see a something like this:
0x00502358 0x08E73444 ;pointer
0x00673444 0x0000007A ; weapon ID 0x00673448 0x00000003 ;number of clips 0x00673450 0x00000013 ;ammo in current clip
The pointer shows where the start of the data is currently stored. The offset of where ammo from the start is 0x00000008 (00673450 - 00673444 = Cool. You can use a special pointer code format like this:
#Inf Ammo 0xFFFFFFFF 0x00502358 0x00000008 0x7FFFFFFF
This will get the address that is stored at the pointer 00502358 at store 0x7FFFFFFF at the offset of 0x8 from that address.
If you don't understand that, well you fail to begin with, but heres the most simple way i can put it.
The first line of the infinite ammo code tells the cpu to load the routine for a certain weapon by specifying the address for that weapon. The second line of the code includes the offset of 8, which is how many addresses it has to move to get to the address that controls the ammo, then it tells the cpu to set the value stored at that address to 7FFFFFFF
Well ask questions.
-oDc WarCrazy | |
|