Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : FREELIDE.ASM

 
Output of file : FREELIDE.ASM contained in archive : DD_IN_C.ZIP
; DevHlp 0x35
; this routine releases the logical ID (LID)
;
; C Calling Sequence:
; if (FreeLIDEntry (USHORT id) ) err
;
include drvlib.inc
;
public FREELIDENTRY

extrn _DevHlp:dword
assume CS: _TEXT
_TEXT segment word public 'CODE'

FREELIDENTRY proc near

push bp
mov bp,sp
mov ax,[bp+4] ; logical ID
mov dl,DevHlp_FreeLIDEntry
call [_DevHlp]
jc error ; error from device help
xor ax,ax ; no errors
pop bp
ret 2 ; fix up the stack
error:
mov ax,1 ; return error for C
pop bp
ret 2 ; fix up stack and return

FREELIDENTRY endp
_TEXT ends
end




  3 Responses to “Category : OS/2 Files
Archive   : DD_IN_C.ZIP
Filename : FREELIDE.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/