Konamiman / Nextor

A disk operating system for MSX computers, forked from MSX-DOS 2.31
Other
183 stars 33 forks source link

"Get cluster information" function call, improvements to EMUFILE #35

Closed Konamiman closed 4 years ago

Konamiman commented 4 years ago

This pull request adds a new function call, GETCLUS (code 7Eh), that allows to retrieve information about a given cluster in a FAT12 or FAT16 drive. The information returned is:

A new tool is added, CONCLUS: it checks the FAT chain of a given file using the new function, and tells whether the file is stored across consecutive sectors in the disk or not.

Also the EMUFILE tool is updated to use this new function in order to check if disk image files are stored across consecutive sectors in the disk.

As a bonus, there's another improvement to EMUFILE: now the "set" command accepts a directory name as parameter instead of a file name. When a directory name is supplied, a file with the same name and .EMU extension will be used. For example, EMUFILE SET \DSKS\GAME is equivalent to EMUFILE SET \DSKS\GAME\GAME.EMU if \DSKS\GAME is a directory.