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 


CE not being able to read real ASM?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
mordax
Expert Cheater
Reputation: 1

Joined: 16 Apr 2010
Posts: 138

PostPosted: Mon Mar 18, 2013 6:02 pm    Post subject: CE not being able to read real ASM? Reply with quote

hi. it seems like that cheat engine does not use real asm (or maybe i have problem in code, but i doubt since it came from asm programmer / debugger).

So what im trying to do is replace specific register (ESI) with ranged value.
instead of ESI, i want it to write value from 1 to 200 (or something like that).
so it writes same code onto each and one of ESI register, not just 1 at a time, but all at once.

here's my code:

Code:
xor esi, esi
Marker1:
or [edi+esi*8],ff;
inc esi;
cmp esi, 1234;
jb Marker1;


but i get this error: Error in line 8 (Marker1:):This address specifier is not valid
i tried with ; at end, but im sure : is correct, didn't work with ; either, it said can't be compiled if i use ; instead of :


Is there something wrong with my code or cheat engine just can't execute real ASM?

or is there any better way of writing ranged registers?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Mar 18, 2013 6:17 pm    Post subject: This post has 2 review(s) Reply with quote

The interpreter that CE uses is homebrewed so it doesn't follow a "standard" in terms of 'real asm'. Instead you will need to define things for jumps as labels. CE also doesn't allow semi-colons at the end of lines. So your code should look like this instead:

Code:
[ENABLE]
label(Marker1)

00400000: // Adjust address as needed..
xor esi, esi
Marker1:
or [edi+esi*8],ff
inc esi
cmp esi, 1234
jb Marker1

[DISABLE]
// Add disable code here if needed..

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
mordax
Expert Cheater
Reputation: 1

Joined: 16 Apr 2010
Posts: 138

PostPosted: Mon Mar 18, 2013 6:25 pm    Post subject: Reply with quote

excellent. exactly what i was looking for.

i don't like CE's system how its "simplified" because im used to real ASM and stuff, but in a way its easier to handle.

Anyway it worked exactly the way i hoped it works.
thanks :)
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