]>
wirehaze git hosting - MS-DOS.git/blob - v4.0/src/MAPPER/DELETE.ASM
4 title CP
/DOS DosDelete mapper
6 dosxxx
segment byte public 'dos'
7 assume
cs:dosxxx
,ds:nothing
,es:nothing
,ss:nothing
9 ; ************************************************************************* *
13 ; * FILE NAME: DOS012.ASM
15 ; * FUNCTION: This module removes a directory entry associated with a
21 ; * PUSH@ ASCIIZ FileName ; FileName path
22 ; * PUSH@ DWORD 0 ; Reserved (must be zero)
27 ; * IF ERROR (AX not = 0)
30 ; * o Invalid file path name
32 ; * MODULES CALLED: DOS int 21H function 41H
36 ; *************************************************************************
47 dtrm12 dd ?
; reserved, always 0
48 asc012 dd ?
; file name path pointer
52 Enter DosDelete
; push registers
54 lds dx,dword ptr [bp].asc012
; file path name
57 int 21h
; delete the file
58 jc err012
; jump if no error
60 sub ax,ax ; set good return code
64 ret size
str - 6 ; return