 ; From: Tristam Fenton-May <tfm@stmarys.demon.co.uk>
 ; Subject: Re: hex to decimal
 ; getfree.asm  Get amount of free disk space
 ;                                               Assembled with TASM 3.1
 ;                               ax = # sectors per cluster
 ;                               bx = # of available clusters
 ;                               cx = # bytes per sector
 .model   small
 .stack   200h
 .data

 clusters     dw           ?
 bytes        dw           ?
 sectors      dw           ?
 total        dw           ?

 .code

 start:
              mov          ax,@data
              mov          ds,ax
              mov          ah,36h
              mov          dl,3     ; drive C
              int          21h      ; use proceed command in debug
              mov          word ptr sectors,ax
              mov          word ptr bytes,cx
              mov          word ptr clusters,bx
 exit:
              mov          ax,4c00h
              int          21h

 end          start
