Description
1) Define an array with 10 unsigned integers in assembly code and write an assembly program that calculates the mean of these 10 integers (truncating the result to an integer).
2) Write an assembly program that converts all lowercase letters to their corresponding upper cases.
3) Write an assembly program that calculates the following function. Assume register r0 holds the signed integer x, and register r1 saves the result. f(x)=10 if x0.
4) Translate the following C program into an assembly program. The C program finds the minimal value of three signed integers. Assume a, b, and c are stored in register r0, r1, and r3, respectively. The result min is saved in register r4.
if (a<b && a<c) { min=a; }
else if (b<a && b<c) { min=b; }
else { min=c; }
5) Write an assembly program that finds the least common multiple (LCM) of two integers. For example, LCM(4,6)=12.
6) Write an assembly program that blinks an LED with a time interval of one second.
Jorge Rivas –
Fantastic support for every assignment, every time. 5+ Stars!
Frank Cory –
I really love the quality of the assignments. They are great so far. Accurate.
Darren Jacob –
Excellent job, my friend. Thank You!!