Subversion Repositories SvarDOS

Rev

Rev 543 | Rev 548 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 543 Rev 547
Line 204... Line 204...
204
 
204
 
205
; is stdin redirected?
205
; is stdin redirected?
206
mov bx, [OLD_STDIN]
206
mov bx, [OLD_STDIN]
207
cmp bx, 0xffff
207
cmp bx, 0xffff
208
je STDIN_DONE
208
je STDIN_DONE
209
; revert the stdout handle (dst in BX already)
209
; revert the stdin handle (dst in BX already)
210
xor cx, cx       ; src handle (0=stdin)
210
xor cx, cx       ; src handle (0=stdin)
211
mov ah, 0x46     ; redirect a handle
211
mov ah, 0x46     ; redirect a handle
212
int 0x21
212
int 0x21
213
; close the old handle (still in bx)
213
; close the old handle (still in bx)
214
mov ah, 0x3e
214
mov ah, 0x3e