Class NADOLDisk
In: lib/NADOLDisk.rb
Parent: DSK
NADOLDisk DSK dot/f_9.png

Methods

Public Class methods

Public Instance methods

add a file to the in-memory image of this DSK

iterate through the CATALOG to find either the named file or (if nil is passed in) an empty slot

iterate through the sector usage bitmap, return a list of [track,sector] for sectors marked available

given a track and sector, treat it as a track/sector list and return an array containing track/sector pairs

reads the catalog, and populate the "files" array with files CATALOG will be at track $00, sector $03 to track $00, sector $09 each entry consists of $10 bytes, which are:

 00-0B - filename - if file is deleted, first byte will be FF
 0C-0D - filesize (low byte first)
 0E - track of track sector list sector
 0F - sector of track sector list sector

[Validate]