Z88 Developers' Notes | ||
---|---|---|
Contents | Contents of System Calls |
OS_Fn, miscellaneous OS functions
RST 20H, DEFB $7B
IN:
A = FN_AH ($01), allocate handle B = handle type B = 0, does not allocate a handle properly - the next handle is given the SAME numberOUT, if successful:
Fc = 0 IX = handleOUT, if failed:
Fc = 1 A = RC_ROOMRegisters changed after return:
..BCDEHL/..IY same AF....../IX.. different IN:
A = FN_VH ($02), verify handle B = handle type IX = handleOUT, if successful:
Fc = 0OUT, if failed
Fc = 1 A = RC_ROOMRegisters changed after return:
..BCDEHL/IXIY same AF....../.... different IN:
A = FN_FH ($03), free handle B = handle type IX = handleOUT, if successful:
Fc = 0 IX = 0OUT, if failed:
Fc = 1 A = RC_HANDRegisters changed after return:
..BCDEHL/..IY same AF....../IX.. differentNotes:
Internal operating system usage.
This call is probably used to allocate all I/O type handles. The handle type is unfortunately undocumented.