Empty directory: Difference between revisions

Content added Content deleted
mNo edit summary
Line 13: Line 13:
=={{header|8086 Assembly}}==
=={{header|8086 Assembly}}==
{{trans|MS-DOS}}
{{trans|MS-DOS}}
; this routine attempts to remove the directory and returns an error code if it cannot.
<lang asm>mov ax,seg dirname ;load into AX the segment where dirname is stored.

<lang asm>mov ax,seg dirname ;load into AX the segment where dirname is stored.
mov ds,ax ;load the segment register DS with the segment of dirname
mov ds,ax ;load the segment register DS with the segment of dirname
mov dx,offset dirname ;load into AX the offset of dirname
mov dx,offset dirname ;load into AX the offset of dirname