First, hook pcsx2 up to Cheat Engine and set memory range from 0x20000000-0x22000000. Cheat engine can find actual addresses that can be used on a real PS2.
Example address:
Real PS2 RAM 0x00350000
PCSX2 RAM 0x20350000
But you were wondering how to make ASM codes right? Simple, I'll explain. RE4 as the example game:
1. Find your value, in this case ammo.

2. Open up the memory viewer and set a write (or read) breakpoint on the address.

3. Fire your weapon and look at the ESI register. That is what you want right there. Also remember to add a 2 to the beginning of of the address.

4. Most of the time you will need to go back a few addresses to get something that works, usually a JAL. The ammo address it gave me was 00120010. So to get it to work I added this in CE's list: 20120008 00000000. Also note that the address will not take effect immediately.
To see if if works, BEFORE you change the ASM value make a save state. After you've made a save state freeze the code in CE's list after you've changed the value and reload the save state. In this example the code gives you infinite ammo.

One last thing: Make sure to use the VEH debugger or it may crash when attaching the debugger.
Example address:
Real PS2 RAM 0x00350000
PCSX2 RAM 0x20350000
But you were wondering how to make ASM codes right? Simple, I'll explain. RE4 as the example game:
1. Find your value, in this case ammo.

2. Open up the memory viewer and set a write (or read) breakpoint on the address.

3. Fire your weapon and look at the ESI register. That is what you want right there. Also remember to add a 2 to the beginning of of the address.

4. Most of the time you will need to go back a few addresses to get something that works, usually a JAL. The ammo address it gave me was 00120010. So to get it to work I added this in CE's list: 20120008 00000000. Also note that the address will not take effect immediately.
To see if if works, BEFORE you change the ASM value make a save state. After you've made a save state freeze the code in CE's list after you've changed the value and reload the save state. In this example the code gives you infinite ammo.

One last thing: Make sure to use the VEH debugger or it may crash when attaching the debugger.
Comment