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 


Assembly language question.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Mon Jun 06, 2016 6:45 pm    Post subject: Assembly language question. Reply with quote

Is it correct to say that everything that can be done in C, C++ or in anything other programming languages can also be done in assembly language?

Such as timer, list(Python), etc.

Sorry for my English.
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: Tue Jun 07, 2016 12:44 am    Post subject: Reply with quote

Yes. Everything done in a high level language such as C/C++ etc. is compiled down to assembly / machine code.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Tue Jun 07, 2016 3:15 pm    Post subject: Reply with quote

atom0s wrote:
Yes. Everything done in a high level language such as C/C++ etc. is compiled down to assembly / machine code.


Thanks for the reply. If I have a piece of C++ code, is there a way to see the complied version(assembly) of it in Visual Studio?
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Tue Jun 07, 2016 3:16 pm    Post subject: Reply with quote

If you set a breakpoint that gets hit, you should be able to open some CPU-window which also shows you a disassembler, although I can't tell you where exactly you'll find that option ...
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Tue Jun 07, 2016 3:55 pm    Post subject: Reply with quote

hhhuut wrote:
If you set a breakpoint that gets hit, you should be able to open some CPU-window which also shows you a disassembler, although I can't tell you where exactly you'll find that option ...


Thanks, I will try to find something on youtube. Smile
Back to top
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Tue Jun 07, 2016 4:33 pm    Post subject: Reply with quote

For a breakpoint that gets hit simply click the margin in msvc (click at the left of the c++ line codes you wrote), a red dot will appear, when you start the debug of your program through MSVC compiler, it will break on the dot (assuming that the program flow goes there).
Although, for what you want to achieve I'd recommend that you merely activate the ASM output from msvc, to do so :
Open the property panel of your project (Project -> property),
go to Configuration Properties, C/C++, OutputFiles, Assembler Output (by default it will be "No Listing") set it to "Assembly with source Code (or machine but i'd recommend source) and validate, now compile again and your folder will hold an asm file.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Tue Jun 07, 2016 5:25 pm    Post subject: Reply with quote

ulysse3131 wrote:
For a breakpoint that gets hit simply click the margin in msvc (click at the left of the c++ line codes you wrote), a red dot will appear, when you start the debug of your program through MSVC compiler, it will break on the dot (assuming that the program flow goes there).
Although, for what you want to achieve I'd recommend that you merely activate the ASM output from msvc, to do so :
Open the property panel of your project (Project -> property),
go to Configuration Properties, C/C++, OutputFiles, Assembler Output (by default it will be "No Listing") set it to "Assembly with source Code (or machine but i'd recommend source) and validate, now compile again and your folder will hold an asm file.


Thank you so much for the help. Smile
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