DC_Rbd, rebind streams
Register parameters
RST 20H, DEFW $1C0C
IN: A = Identifier for stream to rebind RB_IN ($00), input stream - new source of input RB_OUT ($01), output stream - new destination for output RB_PRT ($02), printer stream - new destination for output RB_INT ($03), input stream T - copy of input RB_OPT ($04), output stream T - copy of output RB_PTT ($05), printer stream T - copy of output IX = New stream OUT, if call successful: Fc = 0 OUT, if call failed: Fc = 1 A = error return code: RC_FAIL ($16) - no CLI currently running RC_BAD ($04) - bad arguments Registers affected after return: ..BCDEHL/IXIY same AF....../.... different
Notes
Internal operating system usage.
Bugs
May fail to work in segment 2.
Related calls
DC_Icl, Invoke new CLI
DC_In, Read from CLI
DC_Out, Write to CLI
DC_Prt, Print to CLI
DC_Xin, Examine CLI input
DC_Gen, screen driver SOH call
OS_Cli, CLI interface