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 


Auto assembler Jump instruction question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Wed Sep 07, 2011 3:37 pm    Post subject: Auto assembler Jump instruction question Reply with quote

How do I manually place a jump instruction in the auto assembler.

Take for example:

jle 00D09565

In opcode format this is '7E 16'

How do I write the '7E 16' manually inside the auto assembler at an address? i.e.

Code:

myaddress:
7E 16



EDIT: Just tested, You can use db
Code:

myaddress:
db 7E 16


Ok, now that I know that, waht's the difference between db, dw, dd? I'm sure one is byte, word and double?
Thanks!
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: Wed Sep 07, 2011 3:48 pm    Post subject: Reply with quote

They are declare keywords. As you said:
db = declare byte
dw = declare word
dd = declare dword

There are others depending on the language, not sure if DB implemented them for Cheat Engine though (dq, ddq, do, dt and so on).

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Wed Sep 07, 2011 4:17 pm    Post subject: Reply with quote

Thanks.

I noticed that's a problem with the current code injection template since it will hardcode the jump address.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25864
Location: The netherlands

PostPosted: Wed Sep 07, 2011 4:43 pm    Post subject: Reply with quote

you can also do jle modulename+offset

anyhow, note that 7e 16 will only work on the address it originated from. you must not use it as an "original opcode" just like that. It needs to be redesigned.
In the disable part you can do use the db method though as it will be placed on the correct originating address

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping


Last edited by Dark Byte on Wed Sep 07, 2011 4:51 pm; edited 2 times in total
Back to top
View user's profile Send private message MSN Messenger
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Wed Sep 07, 2011 4:47 pm    Post subject: Reply with quote

Dark Byte wrote:
you can also do jle modulename+offset

anyhow, note that 7e 16 will only work on the address it originated from. you must not use it as an "original opcode" just like that. It needs to be redesigned.
In the disable part you can do use the dd method though as it will be places on the correct originating address


Could you give me an example of using dd in the disable portion for this please? Not quite following you, thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25864
Location: The netherlands

PostPosted: Wed Sep 07, 2011 4:51 pm    Post subject: Reply with quote

I meant db

e.g:
[disable]
addressoforiginalcode:
db 01 02 03 04 05 06 07

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
SwaggaJackin'
Master Cheater
Reputation: 2

Joined: 06 Nov 2009
Posts: 304

PostPosted: Wed Sep 07, 2011 4:56 pm    Post subject: Reply with quote

Dark Byte wrote:
I meant db

e.g:
[disable]
addressoforiginalcode:
db 01 02 03 04 05 06 07


Ok, this is exactly what I was going to do.
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