Question: Write corresponding ARM Assembly code for the following program. Also trace the contents of R0, R1, R2, R3, LR and PC as the program exectues.
Write corresponding ARM Assembly code for the following program. Also trace the contents of R0, R1, R2, R3, LR and PC as the program exectues. Assume addresses wherever needed.
int main () {
int a, b, c; a = 5; b = 6; c = sum (a, b);
} int sum (int x, int y) {
int result = x + y; return result;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
