Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please provide me with a program that will be EXECUTABLE in Visual Studio 2015 A

ID: 3890147 • Letter: P

Question

Please provide me with a program that will be EXECUTABLE in Visual Studio 2015

Also, please provide instructions on creating the listing file and answer the question below. Thank you

B. (7 points) Write a program that contains four instructions: add the number 10 to the EAX register, add 8 to the EDX register add 3 to ax register add 2 to al register. Build the program and make sure it has no error. Run the program and make sure it works. Generate a listing file and examine the machine code generated by the assembler. " What differences, if any, did you find between the instructions formats? o Submit the following: Lastname2.asm - Lastname2.Ist - answer.pdf Comment header for ASM files Student: Awad Mussa Class: CSC3210 Assignment 3-2 Description: This program

Explanation / Answer

Code Written is in nasm:

Save as Lastname2.asm

Lst File:

For compiling nasm code in 2015 visual studio:

Create a new project: Win32 Console (empty project)

Download nasm source from http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D
Then put all content of zip file in subfolder {name_program} of your project (vs)

Come back to the IDE and add all *.c of nasm from root folder in Source FIles and *.h from root to Header Files, except: ndisasm.c

Create lib and output sub-folder in Source Files, then put *.c and *.h respectively in those folder
Create rdoff sub-folder too, then put *.h and not *.c in this file.

Compile, then you will see a lot of error: error C1083: Cannot open include file: 'compiler.h': No such file or directory, etc

After get this error, just adjust path of those missing headers, by modify with put it: "../{blabla}.h", and modifiy path like "output/outlib.h" by "outlib.h"
Be patient, you will get a lot of error like this.

Finish ! i hope for you too :p

Now you can optimize NASM by put compiler option, go to property pages, configuration manager, active solution platefrom.new.x64 then ok
After all depend of your compiler, if you keep the MS compiler, i don't know how to optimize with it, but if you have icl, continue to read.
So for optimize with icl:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote