| View previous topic :: View next topic |
| Author |
Message |
SwaggaJackin' Master Cheater
Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Wed Sep 07, 2011 3:37 pm Post subject: Auto assembler Jump instruction question |
|
|
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.
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Sep 07, 2011 3:48 pm Post subject: |
|
|
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 |
|
 |
SwaggaJackin' Master Cheater
Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Wed Sep 07, 2011 4:17 pm Post subject: |
|
|
Thanks.
I noticed that's a problem with the current code injection template since it will hardcode the jump address.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25864 Location: The netherlands
|
Posted: Wed Sep 07, 2011 4:43 pm Post subject: |
|
|
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 |
|
 |
SwaggaJackin' Master Cheater
Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Wed Sep 07, 2011 4:47 pm Post subject: |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25864 Location: The netherlands
|
Posted: Wed Sep 07, 2011 4:51 pm Post subject: |
|
|
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 |
|
 |
SwaggaJackin' Master Cheater
Reputation: 2
Joined: 06 Nov 2009 Posts: 304
|
Posted: Wed Sep 07, 2011 4:56 pm Post subject: |
|
|
| 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 |
|
 |
|