hax11 How do I cheat?
Reputation: 0
Joined: 26 Oct 2014 Posts: 1
|
Posted: Sun Oct 26, 2014 3:13 pm Post subject: Compare float / conditional jump (Auto Assembler) |
|
|
Hi there,
I want to prevent falling below a certain height.
I found the function which increases y-coordinate when falling (2D). Now I want to check if y is bigger than 3700, and if so, skip one instruction.
Code: |
[...]
newmem:
mov xmm0,(float)3700
fld dword ptr [esi+2C]
fcomp ??
jg originalcode
fstp dword ptr [esi+2C] //original instruction to overwrite y, skip this if too low, if nop'd Mario jumps but does not fall down again :)
originalcode:
fld dword ptr [esi+18]
exit:
jmp returnhere
"MARIO.exe"+F773:
jmp newmem
nop
returnhere:
|
How do I do the float comparison and the conditional jump? Game is Mega Mario ( sourceforge.net/projects/mmario ).
|
|