Category : Utilities for DOS and Windows Machines
Archive   : FILLDISK.ZIP
Filename : DSPACE.ASM

 
Output of file : DSPACE.ASM contained in archive : FILLDISK.ZIP
PAGE 57,132
TITLE D S P A C E . A S M (SUBROUTINE TO FILLDISK.SRC)
;
; DSPACE DISKSPACE VIA INT 33, FUNCTION 54
;
; IN PARM 1, STACK DRIVE NUMBER
;
; OUT PARM 2, " AX SECTORS PER CLUSTER
; PARM 3, " CX BYTES PER SECTOR
; PARM 4, " BX NUMBER OF AVAILABLE CLUSTERS

PARM STRUC

SAVEBP DW 0
RETOFF DW 0
RETSEG DW 0
PARM4 DW 0
PARM3 DW 0
PARM2 DW 0
PARM1 DW 0

PARM ENDS

PARMSIZE EQU OFFSET PARM1 - OFFSET RETSEG


CODE SEGMENT BYTE PUBLIC 'CODE'
ASSUME CS:CODE

DSPACE PROC FAR
PUBLIC DSPACE

PUSH BP
MOV BP, SP
MOV SI, [BP].PARM1
MOV DL, [SI]

MOV AH, 54
INT 33

MOV DI, [BP].PARM2
MOV [DI], AX
MOV DI, [BP].PARM3
MOV [DI], CX
MOV DI, [BP].PARM4
MOV [DI], BX

POP BP

RET PARMSIZE

DSPACE ENDP
CODE ENDS
END


  3 Responses to “Category : Utilities for DOS and Windows Machines
Archive   : FILLDISK.ZIP
Filename : DSPACE.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/