N8di8
April 29th, 2006, 21:20
I'm feeling so stupid...
1.
I understand the following code:
MOV AX, 5
DEC AX
...repeated instructions...
JNZ [address of DEC AX]
2.
Unfortunately, this simple loop does not work for me because register ax is used by the instructions that shall be repeated. Consequently, I want to use a memory address as a "safe place" for the counter.
3.
In principle, I would like to ...
MOV memoryaddress, 5
DEC memoryaddress
...repeated instructions ...
JNZ (with respect to memoryaddress)
4.
I have googled & googled ... but I mainly find high-level stuff which does not really help. Moreover, I read http://faydoc.tripod.com/cpu/jnz.htm according to which it should be possible to MOV bytes to a memory address. But somehow Ollydbg does not allow me to do something like "MOV 41b5ff, 5" because the syntax is wrong.
Please ... ;-)
1.
I understand the following code:
MOV AX, 5
DEC AX
...repeated instructions...
JNZ [address of DEC AX]
2.
Unfortunately, this simple loop does not work for me because register ax is used by the instructions that shall be repeated. Consequently, I want to use a memory address as a "safe place" for the counter.
3.
In principle, I would like to ...
MOV memoryaddress, 5
DEC memoryaddress
...repeated instructions ...
JNZ (with respect to memoryaddress)
4.
I have googled & googled ... but I mainly find high-level stuff which does not really help. Moreover, I read http://faydoc.tripod.com/cpu/jnz.htm according to which it should be possible to MOV bytes to a memory address. But somehow Ollydbg does not allow me to do something like "MOV 41b5ff, 5" because the syntax is wrong.
Please ... ;-)