Assembly_Lecture_07_2023
Assembly_Lecture_07_2023
0008
000B
STACK
000C
000D
CALL
0000 SP=003EH
0000
0003 003E 0003
0006 003C 000B
0008
000B
STACK
000C
000D
CALL
0000 SP=003EH
0000
0003 003E 0003
0006 003C 000B
0008
000B
STACK
000C
000D
CALL
0000 SP=003EH
0000
0003 003E 0003
0006 003C 000B
0008
000B
STACK
000C
000D
CALL
0000 SP=003EH
0000
0003 003E 0003
0006 003C
0008
000B
STACK
000C
000D
Passing Parameters
o Passing Parameters by Value.
Passing Parameters
o Passing Parameters by Value.
MULTIPLICAND
MULTIPLIER
Return Address SP
MULTIPLICAND BP + 6
MULTIPLIER BP + 4
Return Address BP + 2
BP value SP
BP
Passing Parameters
o Passing Parameters by Reference.
Passing Parameters
o Passing Parameters by Reference.
Address MULTIPLICAND BP + 6
Address MULTIPLIER BP + 4
Return Address BP + 2
BP value SP
BP
Passing Parameters
o A common practice for a called procedure:
BOOLEN OPERATIONS