home *** CD-ROM | disk | FTP | other *** search
- PAGE 58,132
- TITLE RDSECRET 11-2-85 [7-17-91]
-
- ;Remove secret directory (e.g., dir name has untypeable char)
- ;v1.1 Toad Hall Disassembly, tweak
-
- LF EQU 0AH
- CR EQU 0DH
-
- CSEG SEGMENT
- ASSUME DS:CSEG, SS:CSEG ,CS:CSEG ,ES:CSEG
- ORG 100H
-
- RDSecret proc near
- ;v1.1 MOV AX,CS
- ;dumb MOV DS,AX
- ;dumb MOV ES,AX
-
- MOV AH,9
- MOV DX,OFFSET msg180 ;'Enter name of directory
- INT 21H
- MOV AH,0AH ;buffered kbd input
- MOV DX,OFFSET buff1B7 ;to here
- INT 21H
- ;v1.1 MOV CH,0
- xor cx,cx ;clear msb v1.1
- MOV CL,len1B8 ;actual input length
- MOV SI,OFFSET buff1B9 ;move input from here
- MOV DI,OFFSET dirname1E0+1 ;to here
- REPZ MOVSB
-
- MOV DX,OFFSET dirname1E0 ;directory name
- MOV AH,3AH ;remove directory
- INT 21H
- ;v1.1 JB L012D ;failed
- ;v1.1 INT 20H
- jnb Terminate ;succeeded v1.1
-
- ;L012D:
- ;v1.1 ADD AX,30H ;'0'
- push ax ;save error v1.1
- add al,30H ;'0' ;asciify error nr v1.1
- MOV err1F9,AL ;stuff in error msg
- MOV AH,9 ;display msg
- MOV DX,OFFSET errmsg1F0 ;'Error #'
- INT 21H
- ;v1.1 INT 20H
- pop ax ;restore error v1.1
- Terminate:
- mov ah,4CH ;terminate, errorlevel in AL v1.1
- int 21H
-
- ;v1.1 DB 44H DUP(0)
-
- msg180 DB 'Enter name of subdirectory (7 characters maximum) - $'
- ;v1.1 DB 0,0
-
- buff1B7 DB 7 ;max buffered kbd input
- len1B8 DB 0 ;actual returned input length
- buff1B9 DB ' '
- ;v1.1 DB 20H DUP(0)
-
- dirname1E0 DB 7FH ;first char is untypeable
- DB 8 dup(0) ;rest of directory name v1.1
- ;v1.1 db 7 dup(0) ;unneeded
-
- errmsg1F0 DB LF,'Error # '
- err1F9 DB ' .',CR,LF,'$'
-
- RDSecret ENDP
-
- CSEG ENDS
- END RDSecret