Category : C Source Code
Archive   : PCC-FNCT.ZIP
Filename : RMDIR.A

 
Output of file : RMDIR.A contained in archive : PCC-FNCT.ZIP
; Copyright (c) 1985 Martin Nohr and Tom Serface
; All Rights Reserved
;
;Revision Date Description
;-------- --------- --------------------------------------------

; Interrupt and codes for the keyboard interface.
DOSINT equ 21h ;call to ibm dos function

cseg

;RmDir Remove Directory
;
; Returns: 0=removed directory successfully
; 3=not a good path in str
; 5=could not remove directory
;
; Call as: ret = RmDir(directory)
; char *directory - String with path name
;int RmDir();
;int ret;
;char directory[85];

public RmDir_
RmDir_:
push bp
mov bp,sp
mov ax,3A00h ;DOS Function to Remove
mov dx,[bp+4]
int DOSINT ;Call DOS to do the Remove
jnc rmwork ;If it Worked Jump
xor ah,ah ;Else Mask the Error and Return
pop bp
ret
rmwork: ;Directory was Removed
xor ax,ax ;So Return 0
pop bp
ret


  3 Responses to “Category : C Source Code
Archive   : PCC-FNCT.ZIP
Filename : RMDIR.A

  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/