Z88 Developers' Notes
Contents   Contents of System Calls

DC_Rbd, rebind streams.

RST 20H, DEFW $1C0C
 

IN:  A = identifier for stream to rebind

     A = RB_IN ($00), input stream - new source of input
     A = RB_OUT ($01), output stream - new destination for output
     A = RB_PRT ($02), printer stream - new destination for output
     A = RB_INT ($03), input stream T - copy of input
     A = RB_OPT ($04), output stream T - copy of output
     A = RB_PTT ($05), printer stream T -  copy of output

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 changed after return:
     Documentation not available.

Notes:
 

Bugs:

May fail to work in segment 2.