joyrider
Active Member
Well since there's no cheat support in emulators yet, i wanted to try to create some trainers (program that patches a certain adress (variable) in memory (for example the nr of lives)
i found a nice example how this is done in linux and the examples work on the gp2x however i would like to know if u take for example the following program :
will the pointer adress of the variable counter always be the same ? when i run it on the gp2x it's BFFFFD90 and it seems to stay the same wheiter i run the program while other programs are running or not, when i restart the program and even when i restart my gp2x it's always at BFFFFD90.
so just to be sure will this always be BFFFFD90 on every gp2x on every firmware version etc ?
i don't know anything about linux memory management so i don't know for sure.
if it is the same it would be easy to create a game trainer for an emulator the hard part would be finding the address where the value of the lives for example is stored (since no tools exist to search for this except gdb perhaps)
does someone know this ?
if it does not stay the same, can someone explain to me why it changes is it due something like DMA on windows ?
i found a nice example how this is done in linux and the examples work on the gp2x however i would like to know if u take for example the following program :
Code:
#include <stdio.h>
int main()
{
int i = 1;
int counter = 0;
while(i){
printf("Counter Value: %d Address of Counter: %X\n",counter,&counter);
if(getchar()=='X')
i=0;
counter++;
}
return 0;
}
will the pointer adress of the variable counter always be the same ? when i run it on the gp2x it's BFFFFD90 and it seems to stay the same wheiter i run the program while other programs are running or not, when i restart the program and even when i restart my gp2x it's always at BFFFFD90.
so just to be sure will this always be BFFFFD90 on every gp2x on every firmware version etc ?
i don't know anything about linux memory management so i don't know for sure.
if it is the same it would be easy to create a game trainer for an emulator the hard part would be finding the address where the value of the lives for example is stored (since no tools exist to search for this except gdb perhaps)
does someone know this ?
if it does not stay the same, can someone explain to me why it changes is it due something like DMA on windows ?