Category : Files from Magazines
Archive   : PCTJ8804.ZIP
Filename : MORFILES.ASM

 
Output of file : MORFILES.ASM contained in archive : PCTJ8804.ZIP
COMMENT " MORFILES.ASM calls DOS function 67H from within
dBASE or other application.
Memory for new handle table must have been previously
allocated by EXDB3, its address & length saved in
interrupt 66H vector.

Written by Ted Mirecki

Convert with EXE2BIN after linking, name it .BIN
"
USERINT EQU 66h ;MUST MATCH INT USED IN EXDB3

CODE SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:CODE

MORFILES PROC FAR
PUSH ES
MOV AH,30h ;GET DOS VERSION
INT 21h
CMP AL,3 ;MUST BE 3.30 OR GREATER
JB EXIT
CMP AH,30
JB EXIT

MOV AX,3500h+USERINT ;GET INT 66 VECTOR TO ES:BX
INT 21h
MOV AX,ES
OR AX,AX ;IS IT SET?
JZ EXIT ;NO: DO NOTHING
MOV AH,49h ;RELEASE MEMORY BLOCK AT ES
INT 21h
MOV AH,67h ;NOW USE IT FOR HANDLE TABLE
INT 21h
EXIT: POP ES
RET
MORFILES ENDP
CODE ENDS
END


  3 Responses to “Category : Files from Magazines
Archive   : PCTJ8804.ZIP
Filename : MORFILES.ASM

  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/