Reference no: EM132301523
Lab 1 - Functions
Objectives - Students will use the lessons learned in the Functions chapter to:
- Declare functions
- Define functions
- Pass by Value
- Pass by Reference
- Use the CDECL Standard Calling Convention
Part 1 -
There will be 4 files in the directory
Four files:
- function.asm
- functionLib.asm
- Makefile
- testC.c
We can use the following make commands:
- make makes function
- make testC makes testC
- make clean clean the directory
Create/Complete the following functions in functionLib.asm
(As described in the headers)
- mulby4
- printXtimes
- getRandNum
- getMax
Test your code with both assembly and C.
What to turn in - Turn in a screen shot of your program run for:
- function
- testC
- Turn in the functionLib.asm and testC.c files
Your output should match the examples.
What to submit: Submit to the canvas system by the deadline Screenshots and files as listed in the lab descriptions. Note: most labs will now require .asm files along with screenshots.
Functions part 2 -
Pull the latest from git
Find the function2 directory
Edit the functionLib file
You will find TBD in the file, where you see this there is code to be added to complete the function as described by the function header.
What to submit: Submit to the canvas system by the deadline Screenshots and your functionLib.asm file.
Lab 2 - System Services
Directions - Complete the Lab and submit to the canvas system
System Services
use git to pull down the latest files
git pull
change to the directory syscalls
open the syscalls.asm file and fill in all the correct registers
What to submit: Submit to the canvas system by the deadline Screenshots and files as listed in the lab descriptions. Note: most labs will now require .asm files along with screenshots.
Attachment:- Assignment Files.rar