Please provide me with a MASM program that will be EXECUTABLE in Visual Studio 2
ID: 3890180 • Letter: P
Question
Please provide me with a MASM program that will be EXECUTABLE in Visual Studio 2015. Also, please provide instructions on creating the listing file and answer the question below please. 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 programExplanation / Answer
Lastname2.asm
add $10, %eax
add $8, %edx
add $3, %ax
add $2, %al
Listing File : The compiler listing file contains an abundance of information about the compilation process. It is composed of a number of sections as below:
To generate a listing file for a .asm file run below command (substitute the values as per your machine environment):
PATH_TO_ml -c –Zi “ –FI$(PATH_DSTINATION_DIR)Lastname2.lst ” “$(PATH_DSTINATION_DIR)LAstname2.asm”
Where PATH_TO_ml could be something similar to masm32inml . Input to this command is the Lastname2.asm and output is Lastname2.lst.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.