



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




th
main() { int v1; int v2; int temp;
main() { int v3; int v4; int v5;
BRzp DONE
F LDR R0, R6, # ADD R0, R0, # STR R0, R6, #
LDR R0, R6, # ADD R0, R0, # STR R0, R6, # BRnzp FL1_
DONE … …
main() { int i; int j; int k;
#include <stdio.h>
int Swap(int a, int b);
main() { int a; int b;
scanf(”%d”, &a); scanf(”%d”, &b);
Swap(a, b);
printf(”a = %d\n”, a); printf(”b = %d\n”, b); }
/* This function swaps the value of the two input parameters */ int Swap(int a, int b) { int x;
x = a; a = b; b = x
return x; }