Access to Local Frame
<SP>
arg n
old <LP>
local 1
...
local k
unused
old <BP>
<BP>
arg 1
...
To access jth local variable:
LD(BP, , rx)
ST(rx, , BP)
To access jth argument:
LD(BP, , rx)
ST(rx, , BP)
Push arguments in reverse order so we
can accommodate variable # arguments
Previous slide
Next slide
Back to first slide
View graphic version