| View previous topic :: View next topic |
| Author |
Message |
mikeo How do I cheat?
Reputation: 0
Joined: 12 May 2007 Posts: 5
|
Posted: Sat May 12, 2007 10:37 am Post subject: C++ ASM problem. |
|
|
Hello,
I'm trying to get the following Cheat Engine code into asm for my C++ code, but can't get it to work.
| Code: | [enable]
006b4df9:
db 76
[disable]
006b4df9:
db 73 |
Could anyone help me to modify this so it will work within the C++ function __asm { } ?
Thank you very much.
Mikeo.
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat May 12, 2007 11:07 am Post subject: |
|
|
| since you're dealing with DBs, you want __emit, not __asm
|
|
| Back to top |
|
 |
mikeo How do I cheat?
Reputation: 0
Joined: 12 May 2007 Posts: 5
|
Posted: Sat May 12, 2007 11:20 am Post subject: |
|
|
Ok,
when I did that I got:
| Code: | | error C2065: '__emit' : undeclared identifier |
My code:
| Code: | __emit
{
006b4df9:
db 76
} |
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
|
| Back to top |
|
 |
mikeo How do I cheat?
Reputation: 0
Joined: 12 May 2007 Posts: 5
|
Posted: Sat May 12, 2007 11:30 am Post subject: |
|
|
I see them use it like:
| Code: | __asm {
__emit 0x90;
__emit 0x90;
__emit 0x90;
__emit 0xBA;
__emit 0x42;
__emit 0x41;
}; |
But don't understand how I would use that in my code..
I have this now:
| Code: | __asm
{
jmp 0x006B4DF9
__emit 0x76
}; |
With the error:
error C2415: improper operand type
(btw, are you dutch?)
Last edited by mikeo on Sat May 12, 2007 11:31 am; edited 1 time in total |
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat May 12, 2007 11:31 am Post subject: |
|
|
__emit 0x76;
__emit 0x75;
And no.
|
|
| Back to top |
|
 |
mikeo How do I cheat?
Reputation: 0
Joined: 12 May 2007 Posts: 5
|
Posted: Sat May 12, 2007 11:32 am Post subject: |
|
|
| But how does it know wich adress to edit then?
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat May 12, 2007 11:38 am Post subject: |
|
|
| It doesn't edit any address.
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Sat May 12, 2007 11:42 am Post subject: |
|
|
Why would you want to use inline asm when you can do it with API's?
_________________
|
|
| Back to top |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Sat May 12, 2007 11:53 am Post subject: |
|
|
| he probably doesn't understand that there is no standard c++ parser for CE autoassembly
|
|
| Back to top |
|
 |
mikeo How do I cheat?
Reputation: 0
Joined: 12 May 2007 Posts: 5
|
Posted: Sat May 12, 2007 11:58 am Post subject: |
|
|
| zomgiownyou wrote: | | Why would you want to use inline asm when you can do it with API's? |
That way is detected by gameguard.
@appalsap:
That is the reason why I made this topic, I want to "convert" the "CE ASM" to "inline ASM"
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Sat May 12, 2007 12:40 pm Post subject: |
|
|
So is using ASM... At the end, it does the same thing. Why do you think people go through a lot of hooking and coding to be able to be undetected. (There's some exceptions)
_________________
|
|
| Back to top |
|
 |
Gthuggin Grandmaster Cheater
Reputation: 0
Joined: 17 Nov 2006 Posts: 862
|
Posted: Fri May 18, 2007 10:09 am Post subject: |
|
|
enable->
| Code: |
*(BYTE *)0x006B4DF9 = 0x76;
|
and disable->
| Code: |
*(BYTE *)0x006B4DF9 = 0x73;
|
that is a simple way...
but yes i would like to know to, how do you write inline ASM to a specified address?
_________________
|
|
| Back to top |
|
 |
*CandyShop* Grandmaster Cheater
Reputation: 0
Joined: 03 Apr 2007 Posts: 865 Location: Israel
|
Posted: Sat May 19, 2007 3:36 am Post subject: |
|
|
So how Actually I can put ASM Script in C++ Script?:
Example
| Code: |
if (ClickOnButton=True)
{
_asm {
ASM Script
}
}
|
Like That?
|
|
| Back to top |
|
 |
DerLücke Advanced Cheater
Reputation: 0
Joined: 17 May 2007 Posts: 58 Location: hackers-on.net
|
Posted: Sat May 19, 2007 4:45 am Post subject: mhm |
|
|
| mmhm i cant help u sry
|
|
| Back to top |
|
 |
|