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 


C++ ASM

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
saik
Newbie cheater
Reputation: 0

Joined: 06 Apr 2016
Posts: 17

PostPosted: Wed May 18, 2016 11:10 am    Post subject: C++ ASM Reply with quote

i still learning how to code asm in c++ so can help me if can
here my script of CE
Code:


define(address,"game.exe"+CE7FA9)
define(bytes,8B 45 0C 50 8B 4D 08)
[ENABLE]

assert(address,bytes)
alloc(newmem,$1000)

label(code)
label(return)
newmem:
code:
  mov [edx+0C],00D03A8B
  mov esp,ebp
  jmp return

address:
  jmp code
return:

[DISABLE]
address:

  db bytes

dealloc(newmem)


C++ code

Code:


void Assembler()
{
   DWORD addy = 0xCE7FA9;
   _asm
   {
         mov[edx + 0x0C], 0x00D03A8B
         mov esp, ebp
         jmp return   
   }
}



1- how to use jmp return in c++
2- did this code look correct ?
Thanks for helping.
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 programming 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