Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

zoo files extraction (Users)

posted by mceric, Germany, 26.01.2024, 21:19

> it might check the available disk space before unpacking a file
> and expect a value below 2GB or overflow otherwise.

Good thought! However, according to RBIL, the FAT12/FAT16 function int 21h with ah=36h should report "2 GB - 32 KB" if more space than that is available, exactly to avoid this kind of problem with programs which might interpret values between 2 GB and 4 GB as negative signed integers.

The FAT32 call is int 21h with ax=7303h, by the way, "get extended free space on drive". Interestingly, Win9x even clips the reported number of free FAT32 clusters to 64k if DOS TSR are active, effectively also limiting reported free space to 2 GB, according to RBIL.

Apps which work on really old DOS versions could also use int 21h, function ah=1bh or 1ch, but those should only report disk, sector and cluster size, not free space on disk. RBIL says those functions report wrong values in Win9x.

---
FreeDOS / DOSEMU2 / ...

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 207 users online (0 registered, 207 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum