Category : Files from Magazines
Archive   : TINYLIB.ZIP
Filename : RDWR.ASM

 
Output of file : RDWR.ASM contained in archive : TINYLIB.ZIP
include compiler.inc
ttl RDRW, 1.04, 08-30-86, clr

;low-level interface to DOS

dseg
exterr

cseg

procdef read, <, , >
push di
mov di,3f00h ;save read function value
jmp short start

entrdef write
push di
mov di,4000h ;save write function value

start:
xor ax,ax
moverr ax ;blank _errcod first
mov bx,handl ; handle
pushds
ldptr dx,buffr,ds ; buffer
mov cx,count ; count
mov ax,di
int 21h
popds
jnc fini
moverr ax
mov ax,-1
fini:
pop di
pret
pend read

finish


  3 Responses to “Category : Files from Magazines
Archive   : TINYLIB.ZIP
Filename : RDWR.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/