Jump to content

How to write Assembly Language Code?


stylebuzzer

Recommended Posts

2 hours ago, stylebuzzer said:

Did any one tell me how to write assembly language code,

The easiest is to use inline assembler

https://en.wikipedia.org/wiki/Inline_assembler

inside of C/C++ code you use statement

__asm__ ( "code here" );

or

asm( "code here" );

2 hours ago, stylebuzzer said:

and how to understand the forms of 0,1?  

..you don't have to.. There are widely used mnemonics these days for several decades.

x86 instruction set you can see here:

https://en.wikipedia.org/wiki/X86_instruction_listings

Mnemonic is usually shortcut of full English sentence what does instruction e.g.

RCR = Rotate right (with carry)

 

Quick and easy way to learn assembler is to use Disassembly together with Debugging inside of Visual Studio (or Express). You can see C/C++ lines mixed with generated assembler code (equivalent of C/C++).

Link to comment
Share on other sites

56 minutes ago, Sensei said:

Quick and easy way to learn assembler is to use Disassembly together with Debugging inside of Visual Studio (or Express)

Note that Visual Studio Express has been replaced by the Community Edition of Visual Studio

Link to comment
Share on other sites

Just now, Strange said:

Note that Visual Studio Express has been replaced by the Community Edition of Visual Studio 

Yes.

..I am still using VS Express 2008, as it's simply faster..

For x64 compilation there can be used VS 2010, or specially modified VS 2008.

AFAICS, you can still download VS 2008 ISO from Microsoft website at this link:

https://go.microsoft.com/fwlink/?LinkId=104679

 

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.