| Z88 Developers' Notes | ||
|---|---|---|
| Contents | Contents of System Calls | |
OS_Mgb, get current bank binding in segment
RST 20H, DEFB $5A
IN:
C = memory segment specifier (MS_S0, MS_S1, MS_S2 & MS_S3)OUT, if call successful:
Fc = 0OUT, if call failed:
B = bank number currently bound to that segment
C = C(in)
Fc = 1Registers changed after return:
A = error code:
RC_ERR ($0F), C was not valid
...CDEHL/IXIY sameNotes:
AFB...../.... different
Bugs:
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_Mop, open memory (allocate memory pool)
OS_Mpb, set new bank binding in segment
OZ_Mgb, get current bank binding in segment
OZ_Mpb, set new bank binding in segment