Friday, September 9, 2016

Configure Microsoft Visual Studio for Assembly Language | How to

I know you are itching to start writing programs in assembly language, but before we start our fantastic journey of learning how to code in assembly language, there are certain tools that you should have:
  • Assembly Editor
  • Debugging Tool
I personally would suggest Microsoft visual studio (latest version).
Note: For this tutorial we will be using MS-Visual Studio. To download MS-Visual Studio to your computer, visit the following link:
http://www.visualstudio.com/downloads/download-visual-studio-vs
If you have any troubles installing MS-Visual Studio, visit the following link:
http://msdn.microsoft.com/en-us/library/e2h7fzkw.aspx
Now, you have installed the tools required to get going, you should configure it for the assembly language.

Configuration of MS-Visual Studio for MASM

Follow the following steps to configure Microsoft visual studio for assembly language:
  1. Open the Microsoft visual studio from your desktop, which you have installed earlier.
  2. Go to the TOOLS (located at the toolbar) and click on the CUSTOMIZE option. Following window will appear on your screen.
  3. configure microsoft visual studio for assembly language
  4. Click on the Commands tab and then click on the Add Command. You should see the following screen on your monitor/lid.
  5. configure microsoft visual studio for assembly language
  6. Click on the debug option and then select Start/Continue. And click OK.
  7. Now again click on the TOOLS button, and then click on the Options button. New window will appear on your screen as shown in the following figure 3.3.

  8. configure microsoft visual studio for assembly language
  9. Double click on the Text Editor option, and then from the pull-down menu select All Languages and then click on Tabs.
  10. Enter 5 in the text field present in front of the Tab Size and enter 5 in the text field in front of the Indent Size, as shown in the above figure 3.3, and press OK.
Congratulations, now we are ready to write and execute programs in assembly language.

Let’s Run A Program:

  1. Go to the following link to download the zip file. Which will help us later in writing code.
  2. Make a new folder in C drive and rename it to Irvine.
  3. Now copy the downloaded zip file and extract it into the Irvine folder, you should see the following files (fig 3. 4) on your monitor/lid.
  4. run a program in assembly language using microsoft visual studio
    Note: If you don’t have access to C drive, make the new folder on desktop with the name Irvine.
  5. Open MS-Visual Studio and click on the File button. Go to Open and from the pull down menu click on the Project/Solution. A new window will appear on the screen.
  6. From the new window:
    1. Open C drive.
    2. Open Irvine folder
    3. Open Examples folder.
    4. Open ch03 folder.
    5. Open Project folder.
    6. Open Project.sln file.
  7. You should see the following screen on your window. If you don’t see the code on your screen, double click on the AddSum.asm from the solution explorer.

  8. run a program in assembly language using microsoft visual studio
  9. Press ctrl+F5 and you should see the following console window on your screen. Which shows the output of the program written in addsum.asm file.
  10. run a program in assembly language using microsoft visual studio

No comments :

Post a Comment

Note: Only a member of this blog may post a comment.

Copyright 2017. All Rights Reserved. Privacy Policy / Terms And Conditions / Sitemap / Contact