[12 p]
Assume that the ttk-91 subroutine return instruction (EXIT)
has somehow got "broken", and one can not use it any more.
(For example, there is a bug in the microchip circuitry and the bug causes
sometimes serious problems in the system.)
However, we still want to be able to use subroutines.
We need a ttk-91 symbolic machine langugage code sequence that
does the same things functionally as symbolic machine language
instruction
"EXIT SP, =2".
- [4 p]
Describe verbally everything that this code sequence would do.
- [4 p]
Easier implementation: give the above mentioned code sequence
and use indirect addressing mode to jump to the
return address stored in the activation record stack.
- [4 p]
Only a little bit more difficult implementation:
give the above mentioned code sequence
and use self-modifying code to jump to the
return address stored in the activation record stack.