| Z88 Developers' Notes | ||
|---|---|---|
| Contents | Contents of System Calls | |
OZ_Mpb, set new bank binding in segment
RST 30H
IN:
C = memory segment specifier (MS_S0, MS_S1, MS_S2 & MS_S3)OUT, always successful:
B = bank number to bind into this segment ($00 - $FF)
B = bank number previously bound to that segmentRegisters changed after return:
AF.CDEHL/IXIY sameNotes:
..B...../.... different
New API introduced in OZ V4.1
Bind bank, defined in B, into segment C (MS_Sx). Return old bank binding in B.
This is the functional equivalent of original OS_MPB, but much faster.
Related calls:
OS_Bix, Bind in extended address
OS_Box, restore bindings after OS_Bix
OS_Fc, select fast code (fast bank switching)
OS_Mal, allocate memory
OS_Mcl, close memory (free memory pool)
OS_Mfr, free (previously allocated block) memory
OS_Mgb, get current bank binding in segment
OS_Mop, open memory (allocate memory pool)
OS_Mpb, set new bank binding in segment
OZ_Mgb, get current bank binding in segment