Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Register parameters

Code Block
languagenone
titleRST 20H, DEFW DEFB $60
IN:
     B = 0, bind in physical address in HL
     BHL = extended pointer to bind into physical address space
     IY points at OSPUSH frame (preserved by previous OZ call) containing:

     offset:  contents:
     10       <RETurn address to caller>
     0E       <original bank bindings for segment 2 & 3>
     0C       <HL>
     0A       <DE>
     08       <BC>
     06       <AF>
     04       <pointer to OZ call address>
     02       <original bank bindings for segment 2 & 3>
     00       <IY>

OUT:
     DE = old binding of segment 1 in E, and segment 2 in D.
     B = 0, always, identifying a converted local pointer
     HL = (possibly modified) address for segment 1.

Registers changed after return:
     A..C..../IXIY same
     .FB.DEHL/.... different

...