RxZ95sssPG wrote:
Hi there,
I want to make a code (ARDS MPH) that saves my Energy and add the saved value to my Energy
Example: I have 30 HP and now i want to save this and add it to my HP so that i have now 60 HP
well the D4 code type adds. but it adds the value that I give in the argument
I need a code type hack to add the value loaded by the DA code type. there might already be a hack for that. if yes could you post that code here? or if not could anybody tray to make one?
Dalle
I wanted to take a crack at it. I was just looking through all the codes now, and there's only 1 add command, the one you mentioned, there's not even a multiply stored register command. This is as far as I could get.
D9000000 xxxxxxxx 32bit load ‘stored’ from memory location xxxxxxxx (get original health)
or if it's a 2 or 1 byte value only:
DA000000 xxxxxxxx 16bit load ‘stored’ from address
DB000000 xxxxxxxx 8bit load ‘stored’ from address
Then:
D6000000 xxxxxxxx 32bit store and increment (put the health value from stored into the memory location xxxxxxxx)
or if it's a 2 or 1 byte value only:
D7000000 xxxxxxxx 16bit store and increment
D8000000 xxxxxxxx 8bit store and increment
... no add command...