Jump to content
IGNORED

TOS patch for more compatible, more efficient hard disk work


Recommended Posts

Here are some important details: http://atari.8bitchip.info/tos105.html

I think that I did now, so many years later what Atari should do then - at least at 1989, when TOS 1.04 was launched. Real FAT16 filesystem, without those large logical sectors.

That some people at Atari were aware that it should be done little different proves this quote from file FS.H , from 1986 :

"
/*
** Type declarations
*/

#define BCB struct _bcb
#define FTAB struct _ftab
#define PD struct _pd
#define OFD struct _ofd
#define FCB struct _fcb
#define DND struct _dnd
#define DMD struct _dmd
#define CLNO int /* cluster number M01.01.03 */
#define RECNO int /* record number M01.01.03 */
/*** this should be changed to a long!! ***/
#define FH unsigned int /* file handle M01.01.04 */"

"

Indeed, record number needs to be long, for efficient work. And above is probably for TOS 1.02 - 256MB limit is because record number is signed. Cluster number should be unsigned too, for real FAT16 - then can have larger partitions.

 

This was over 2 weeks full time work, over 200 changes in code - without sources, done so that original RAM layout and variable addresses of TOS 1.04 are unchanged.

Edited by ParanoidLittleMan
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...