Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Interrupts & Ports - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

        Get disk space (INT 21h, 36h)

        Entry:
          AH = 36h
          DL = drive code (0 = default, 1 = A, 2 = B, etc.)
        Return:
          AX = number of sectors per cluster
               or 0FFFFh if invalid drive
          BX = number of available clusters
          CX = bytes per sector
          DX = total clusters

        Note:
                multiply AX x CX x BX for free space on disk
                multiply AX x CX x DX for total disk space

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson