Versions Compared

Key

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

Register parameters

Code Block
languagenone
titleRST 20H, DEFW DEFB $5D
 IN:
     C = memory segment specifier (MS_S0, MS_S1, MS_S2 & MS_S3)
     B = bank number to bind into this segment ($00 - $FF)

OUT, if call successful:
     Fc = 0
     B = bank number previously bound to that segment
OUT, if call failed:
     Fc = 1
     A = error code:
          RC_ERR ($0F), C was not valid

Registers changed after return:
     ...CDEHL/IXIY same
     AFB...../.... different

...