Bad idea - ah is an 8-byte part of eax, so the size specifier has to be byte - your code would just lead to another size conflict. Also, the first instruction would overwrite the register's original value, so the value at 0x34532F73 were increased by 0x2F (what's obviously not OP's aim).
An additional register usage is not required, the following syntax is perfectly valid:
Code:
add byte ptr ds:[0x34532F73], ah
Edit:
My code implies that the target value at 0x34532F73 is of BYTE type. If that's not the case, you'll have to do something similar to this for a DWORD typed value:
Bad idea - ah is an 8-byte part of eax, so the size specifier has to be byte - your code would just lead to another size conflict. Also, the first instruction would overwrite the register's original value, so the value at 0x34532F73 were increased by 0x2F (what's obviously not OP's aim).
An additional register usage is not required, the following syntax is perfectly valid:
Code:
add byte ptr ds:[0x34532F73], ah
Edit:
My code implies that the target value at 0x34532F73 is of BYTE type. If that's not the case, you'll have to do something similar to this for a DWORD typed value:
Bad idea - ah is an 8-byte part of eax, so the size specifier has to be byte - your code would just lead to another size conflict. Also, the first instruction would overwrite the register's original value, so the value at 0x34532F73 were increased by 0x2F (what's obviously not OP's aim).
You're right. I have barely typed or read a shred of ASM in years, I shouldn't be posting. Too much Java.
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?! 07/28/2011 - Metin2 Private Server - 10 Replies Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :(
ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)