Category : C Source Code
Archive   : UNIXTOOL.ZIP
Filename : CLSIZE.ASM

 
Output of file : CLSIZE.ASM contained in archive : UNIXTOOL.ZIP
; clsize.asm Read cluster size of a disk.
; K.van Houten 230987
; Static Name Aliases
;
TITLE clsize

_TEXT SEGMENT BYTE PUBLIC 'CODE'
_TEXT ENDS
CONST SEGMENT WORD PUBLIC 'CONST'
CONST ENDS
_BSS SEGMENT WORD PUBLIC 'BSS'
_BSS ENDS
_DATA SEGMENT WORD PUBLIC 'DATA'
_DATA ENDS
DGROUP GROUP CONST, _BSS, _DATA
ASSUME CS: _TEXT, DS: DGROUP, SS: DGROUP, ES: DGROUP
PUBLIC _clsize
_DATA SEGMENT
_DATA ENDS
_TEXT SEGMENT
PUBLIC _clsize
_clsize PROC NEAR
push bp
mov bp,sp
push di
push si
push bx
push cx
push dx
push bp
push ds

; get info
mov dl,[bp+4d]
inc dl
mov ah,1ch
int 21h
mov ah,0h
mul cx

pop ds
pop bp
pop dx
pop cx
pop bx
pop si
pop di
mov sp,bp
pop bp
ret
_clsize endP

_TEXT ENDS
END


  3 Responses to “Category : C Source Code
Archive   : UNIXTOOL.ZIP
Filename : CLSIZE.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/