Student Information
Ewan Pedersen
CS2210
11 • 11 • 2024
online doc version, as markdown always seems to compile to pdf weirdly
6. Modify the Program to Display the Number 20. Run the Program, and take a screenshot of the 20 Displayed on the Command Line.
Photo
11. Type echo $?
to Display the Contents of Register 0. The Result Should Be 18. Take a screenshot of Your Program, and take a screenshot of the Output Shown on the Command Line.
code
Photo
output
Photo
12. Create a File Called helloworld.s
and Write the following Program to It. Assemble, Link, and Run the Program. Take a screenshot of the Output:
Photo
13. Modify the Program to Write “Hello World, This is your name”. Assemble, Link, and Run the Program. Take a screenshot of the Program, and take a screenshot of the Output on the Command Line.
code
Photo
output
Photo
15. Delete helloworld.o
and the helloworld
Executable, and Run the Makefile via make helloworld
(no Need to Include the .s
with the Make command). Then, Run the helloworld
Executable Generated by the Makefile. Take a screenshot of both the Output of the Makefile, and the Output of the helloworld
Executable.
Photo