Category : Files from Magazines
Archive   : TINYLIB.ZIP
Filename : FCLOSE.ASM
ttl FCLOSE, 1.05, 10-16-86, jwk
;close io stream
dseg
exterr
cseg
xtfs
procdef fclose, <
pushreg
pushds
moverr 0
callit $strhand <
inc ax
jz ex ;bad pointer, ERR=0
dec ax
callit close,<
or ax,ax ;returned NULL
jz ok ;yes, okay
;
seteof:
moverr ax ;no, set error code
mov ax,-1 ;and return EOF
jmp short ex
;
ok:
ldptr si,stream
xor ax,ax
mov 4[si],al ;ERCD
mov 3[si],al ;CRFLG
mov 2[si],al ;MODE - not open
dec ax
mov [si],ax ;no UGC
inc ax
ex: pret
pend fclose
finish
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/