home *** CD-ROM | disk | FTP | other *** search
- .hd //
- .bp
- .so a:ljtbl
-
-
-
- -------------------------------------------------------------------------------------------------
- page 0 | | | | | | |
- -------------------------------------------------------------------------------------------------
- | | | | | | |
- code segment |call trap |call trap |call trap | | |call trap |
- | | | | | | |
- -------------------------------------------------------------------------------------------------
- data segment | | | | | | |
- | | | | | | |
- -------------------------------------------------------------------------------------------------
- free memory | | | |return address |return address | |
- contains symbol| | | | | | |
- table | | | | | | |
- | | | | | | |
- -------------------------------------------------------------------------------------------------
- | | | | | | |
- | | | | | | |
- stack | | | | | | |
- | | |fprint+3 |fprint | | |
- | |return address |return address |resume |resume |return address |
- | |arg1 |arg1 |arg1 |arg1 |arg1 |
- | |arg2 |arg2 |arg2 |arg2 |arg2 |
- -------------------------------------------------------------------------------------------------
- operating | | | | | | |
- system | | | | | | |
- -------------------------------------------------------------------------------------------------
- |memory after |fprint is |trap is called |call trap is |trap returns |resume restores|
- |setup |called | |replaced with |to fprint. |original return|
- |original |fprint returns |address and |
- |contents. |to resume. |call trap |
- |return address | |instruction |
- |replaced by |
- |address of |
- |resume. |
-
-
- Figure 3
- .so a:ljstup
-
- |original return|
- |original |fprint returns |address and |
- |contents. |to resume. |call trap