Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Applied links to System Call Reference API's

...

Code Block
languagenone
titleOS_Fc, select fast code (fast bank switching)
RST 20H, DEFB $8A

IN:
            A = 1, for fast bank switching
            DE = address to copy fast bank code into
            HL = 0, for code to terminate with RET
            HL <> 0, for code to terminate with JP (HL)
            C = segment for bank switching (MS_Sx)
 
OUT:
            Fc = 0
            A = code size
 
Registers changed after return:
            ..BCDEHL/IXIY same
            AF....../.... different

The OS_Fc fast bank switching code has now been established. Subsequent calls to OS_Fc with:

Code Block
languagenone
IN:         
            A = bank to bind to segment specified by OS_Fc initialization
OUT: 
            AFBCDEHL/IXIY/afbcdehl same
            ......../..../........ different

OS_Fc has only been implemented with the above bank switching routine.

...