Microsoft (R) Macro Assembler Version 5.10                  5/16/24 23:40:12
CP/DOS  DosDelete  mapper                                   Page     1-1


				;
				page 80,132
				;
				title CP/DOS  DosDelete  mapper
				;
 0000				dosxxx	segment byte public 'dos'
					assume	cs:dosxxx,ds:nothing,es:nothing,ss:nothing
				;
				; ************************************************************************* *
				; *
				; *	 MODULE: DosDelete
				; *
				; *	 FILE NAME: DOS012.ASM
				; *
				; *	 FUNCTION: This module removes a directory entry associated with a
				; *		   filename.
				; *
				; *
				; *	 CALLING SEQUENCE:
				; *
				; *		   PUSH@ ASCIIZ FileName  ;  FileName path
				; *		   PUSH@ DWORD 0	  ;  Reserved (must be zero)
				; *		   CALL  DosDelete
				; *
				; *	 RETURN SEQUENCE:
				; *
				; *		   IF ERROR (AX not = 0)
				; *
				; *		      AX = Error Code:
				; *		      o   Invalid file path name
				; *
				; *	 MODULES CALLED:  DOS int 21H  function 41H
				; *
				; *
				; *
				; *************************************************************************
				
					public	DosDelete
					.sall
					.list
				
				str	struc
 0000  0000			old_bp	dw	?
 0002  00000000			return	dd	?
 0006  00000000			dtrm12	dd	?	; reserved, always 0
 000A  00000000			asc012	dd	?	; file name path pointer
 000E				str	ends
				
 0000				DosDelete  proc   far
					Enter	DosDelete		    ; push registers
				
 000C  C5 56 0A				lds	dx,dword ptr [bp].asc012    ; file path name
				
 000F  B4 41				mov	ah,041h
 0011  CD 21				int	21h			    ; delete the file
 0013  72 02				jc	err012			    ; jump if no error
				
 0015  2B C0				sub	ax,ax			    ; set good return code
				
 0017				err012:
					mexit				    ; pop registers
 0023  CA 0008				ret	size str - 6		    ; return
				
 0026				DosDelete  endp
				
 0026				dosxxx	ends
				
					end

Microsoft (R) Macro Assembler Version 5.10                  5/16/24 23:40:12
CP/DOS  DosDelete  mapper                                   Symbols-1


Macros:

		N a m e			Lines

ENTER  . . . . . . . . . . . . .  	   3
MEXIT  . . . . . . . . . . . . .  	   3
POPAL  . . . . . . . . . . . . .  	   9
PUSHAL . . . . . . . . . . . . .  	   9

Structures and Records:

                N a m e                 Width   # fields
                                        Shift   Width   Mask    Initial

STR  . . . . . . . . . . . . . .  	000E	0004
  OLD_BP . . . . . . . . . . . .  	0000
  RETURN . . . . . . . . . . . .  	0002
  DTRM12 . . . . . . . . . . . .  	0006
  ASC012 . . . . . . . . . . . .  	000A

Segments and Groups:

                N a m e         	Length	 Align	Combine Class

DOSXXX . . . . . . . . . . . . .  	0026	BYTE	PUBLIC	'DOS'

Symbols:            

                N a m e         	Type	 Value	 Attr

DosDelete  . . . . . . . . . . .  	F PROC	0000	DOSXXX	Global	Length = 0026

ERR012 . . . . . . . . . . . . .  	L NEAR	0017	DOSXXX

@CPU . . . . . . . . . . . . . .  	TEXT  0101h		
@FILENAME  . . . . . . . . . . .  	TEXT  delete		
@VERSION . . . . . . . . . . . .  	TEXT  510		


    116 Source  Lines
    140 Total   Lines
     18 Symbols

  47454 + 325215 Bytes symbol space free

      0 Warning Errors
      0 Severe  Errors
