In: Computer Science
you can use either vim or nano as text editor
Implement the following code in ARM on Raspberry Pi, compile and run.
g=12, h=8, i=2, j=5;
f = (g + h) - (i + j);
Your program displays the message:
f = (g + h) – (i + j) = 13
Note: answer should be calculated not hardcoded
In ARM on Raspberry Pi here we do some algorithm for understanding how it is run. And how it store the value into "f"
Here we use 1) Addition in Assembly and Subtraction in g, h, I, j
Please go through the image which I am going to attachment here