From: Marko Mäkelä (msmakela_at_cc.hut.fi)
Date: 2001-10-17 15:36:21
On Wed, 17 Oct 2001, Keates, Mark wrote: > Forgive my non-familiarity of the C64 disk drive but > how would the server running from its ROM know about > the filesystem layout? Actually, the drive contains the disk operating system and does know about the file system layout. But I'd adopt a simpler file system for such an application, since the HTTP server does not need to write anything to the disk (no log files). The file system could be implemented by one sector that is initially loaded from the disk to memory. That sector would contain file names and disk addresses (linear addressing, maybe with a fixed interleave factor). Each page would occupy an integer amount of sectors, and each sector would hold 256 bytes of data (instead of the normal 254). The end of a file could be marked with a zero byte, or if you want to serve binary files, the file lengths could be stored in the directory. In that case, the starting disk address of a document could be determined by adding the file lengths of preceding documents (rounded up to 256-byte boundaries) together. Marko ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:43 CET