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
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Fri Jun 27, 2008 12:49 pm    Post subject: [C++] Asm Reply with quote

Well im making something and I was wondering how I would convert this to C++
Code:

[Enable]
// GMS v.57 Updated by Pro-Surf
0049DDE7:
jae 0048025c


[Disable]
0049DDE7:
jbe 0048025c


would it be

__asm{
0049DDE7:
jae 0048025c
}
[to turn it on]

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Jun 27, 2008 1:02 pm    Post subject: Reply with quote

No, the _asm function writes the assembly code in the current address.
It would be:
Code:
mov byte ptr ds:[0x49DDE7],0x73

Or, use pointers.

But seriously, learn how to code, we're not gonna code all your programs, every little question you're making a new topic about it, just learn how to code instead of "requesting codes and compiling"...
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Fri Jun 27, 2008 1:28 pm    Post subject: Reply with quote

Explain what 0x73 exactly is
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Jun 27, 2008 1:45 pm    Post subject: Reply with quote

Short Jump if After or Equal byte.
Back to top
View user's profile Send private message
Drops
Advanced Cheater
Reputation: 0

Joined: 22 Feb 2008
Posts: 62

PostPosted: Fri Jun 27, 2008 2:54 pm    Post subject: Reply with quote

You can also just write the bytes in using memcpy (dll) or WPM.
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Fri Jun 27, 2008 4:16 pm    Post subject: Reply with quote

Symbol wrote:
No, the _asm function writes the assembly code in the current address.
It would be:
Code:
mov byte ptr ds:[0x49DDE7],0x73

Or, use pointers.

But seriously, learn how to code, we're not gonna code all your programs, every little question you're making a new topic about it, just learn how to code instead of "requesting codes and compiling"...


just because he dont know how to use asm it dosent mean he cant code ...
i really having problem with it too but i can still code stuff

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Fri Jun 27, 2008 4:46 pm    Post subject: Reply with quote

ups2000ups wrote:
Symbol wrote:
No, the _asm function writes the assembly code in the current address.
It would be:
Code:
mov byte ptr ds:[0x49DDE7],0x73

Or, use pointers.

But seriously, learn how to code, we're not gonna code all your programs, every little question you're making a new topic about it, just learn how to code instead of "requesting codes and compiling"...


just because he dont know how to use asm it dosent mean he cant code ...
i really having problem with it too but i can still code stuff


Take a look at the forum, and at how many posts have been made by this guy.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
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: Fri Jun 27, 2008 9:50 pm    Post subject: Reply with quote

ElectroFusion, while it is nice to see you are trying to learn, you are very much so not doing it in a good method. Having people here spoon feed you everything is not going to get you started or get you learning at all. You seriously need to stop jumping around from project to project and seriously sit down and read about a specific language. In your case, you seem to be interested in C++, you need to stop posting here for help and actually learn the language. Most if not all your questions are basic and could have been learned from reading something.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Fri Jun 27, 2008 10:47 pm    Post subject: Reply with quote

Wiccaan is entirely right...maybe you'll listen to him. If you really want to learn C++ I suggest you go to either of these URL's to learn the basics:

http://www.cprogramming.com/tutorial.html#c++tutorial

http://www.cplusplus.com/doc/tutorial/

For Win32 API Programming (do this AFTER you learn the basics):

http://www.winprog.org/tutorial/

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Wild
I post too much
Reputation: 1

Joined: 05 Jan 2007
Posts: 2651
Location: NYC

PostPosted: Fri Jun 27, 2008 11:14 pm    Post subject: Reply with quote

I have a question on Win32 API programming (sorry for the off topic but its up there^^)
What is the difference from regular c++ and what does it help accomplish? Is like something I should learn if I know the basics?

_________________
Back to top
View user's profile Send private message AIM Address MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Fri Jun 27, 2008 11:39 pm    Post subject: Reply with quote

win32 is just (on cef at least) code name for win32 c++. It's just using the C++ STL and language to use the win32 API to program windows.
_________________
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