$29
IMPORTANT!
Please follow the submission guidelines below or your submission will be rejected.
You are expected to submit both a lab report and the source files (in a single zip file) to Blackboard in a single submission attempt.
The name of the lab report must be
“FirstName_LastName_Project_XX_MMY.pdf”*. Note that your report must be a PDF file.
The name of the zip file must be
“FirstName_LastName_Project_XX_MMY.zip”*.
*Replace “XX” with the actual lab number (2 digits). Replace “Y” with the section number.
In this lab, the students are expected to learn the basics of x86 assembly language, e.g. the use of x86 instructions, registers, loop, conditional instructions, system calls, etc.
Task 1
Try the “hello world” example we learned in class, but instead print out your name, student ID and section number.
Deliverables:
Successfully implement the program which can generate the correct outputs. (4 points)
In your report, include your source code, comment/explain each line of the code, and explain how to assemble, link and run the code. (2 points)
In the zip file, include your source code file, comment each line of the code. (2 points)
In your report, include a screenshot of the program outcome. (2 points)
1 | P a g e
Task 2
Note that in the “hello world” program, one has to explicitly specify the length of the string for it to be properly printed out. In this task, you are expected to create a function called strlen to count the length of the string. Then you call that function from the main program to get the string length so that there is no need to explicitly specify the length of the string.
With the new version, to print out a different message, only the string needs to be modified, nothing else to update anywhere in the program.
Deliverables:
Successfully implement the program which can generate the correct outputs. (3 points)
Follow proper function calling conventions. (4 points)
In your report, include your source code, comment/explain each line of the code, and explain how to assemble, link and run the code. (1 points)
In the zip file, include your source code file, comment each line of the code. (1 points)
In your report, include a screenshot of the program outcome. (1 points)
2 | P a g e