Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help]CE Tutorial Step 9 (Trying ASM Script) [Solved]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Qvintus
Cheater
Reputation: 0

Joined: 07 Nov 2013
Posts: 32

PostPosted: Sat Jun 07, 2014 7:19 pm    Post subject: [Help]CE Tutorial Step 9 (Trying ASM Script) [Solved] Reply with quote

Hello there
Once more I sadly must write here to ask for help.

Trying my best here to learn ASM, so I thought why not go through the CE tutorial trying to solve as many things as possible using asm only.

I seem to not grasp how to use a cmp correctly.
I'm trying to figure out if the person getting attacked is on team 1 or 2.

Code:

[ENABLE]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(player)
label(enemy)

newmem:
cmp [ebx+10],02
je enemy
jne player

originalcode:
//mov [ebx+04],eax
//fldz

player:
nop
fldz
jmp returnhere

enemy:
mov [ebx+04],eax
fldz
jmp returnhere

exit:
jmp returnhere

"Tutorial.exe"+27E76:
jmp newmem
returnhere:

[DISABLE]
dealloc(newmem)
"Tutorial.exe"+27E76:
mov [ebx+04],eax
fldz


I'm assuming I'm misunderstanding something, since I'm getting:
Code:
Invalid floating point operation
Press OK to ingore and risk data corruption
Press Cancel to kill program


Then whoever has been attacked insta dies.

As you can probably see I'm trying to figure out where to go depending on ebx+10's value.

Edit: Sorry if there is a lack of info, as I'm still quite new to asm I lack the knowledge as to how much info is needed.

Edit: Apologizes for not searching enough, did some extra searching and figured out my cmp call was correct. However I forgot to return. Correct code has been updated. Any feedback as to what I can optimize is welcome!.

Best regards Qvintus
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites