Question: Given the following High Level Language statements. Main() { Int a=14; Int b=30; SUBT(a,b) } SUBT(int x, int y) { Return (y-x) } Assume that
Given the following High Level Language statements.
Main()
{ Int a=14;
Int b=30;
SUBT(a,b)
}
SUBT(int x, int y)
{ Return (y-x)
} Assume that parameters are passed on to the stack and the callee (Called program) cleans the stack.
Write the code for SUBT when it is compiled into Assembly Language. HINT: Draw the Stack Frame first to see how it looks like.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
