Review S: ARM stacks & subroutines

printable version

S1: [1] [2] [3] [4] // S2: [1] // S3: [1] [2] [3] [4] [5] [6] [7] // S4: [1] [2] [3]

Problem S1.1

An ARM assembly language subroutine can be called from multiple locations within a program. From wherever it is called, the subroutine should return back to the instruction following the one that entered the subroutine. How does an ARM subroutine determine where to return after completing its computation? Your answer should describe where it can find the return location and how the value is normally placed there.