Class AppleCPM
In: lib/file_systems/AppleCPM.rb
Parent: FileSystem
AppleCPM FileSystem dot/f_7.png

Methods

Constants

RECORD_SIZE = 128
BLOCK_SIZE = 1024
BLOCKS_PER_EXTENT = 16
RECORDS_PER_BLOCK = BLOCK_SIZE/RECORD_SIZE
RECORDS_PER_EXTENT = RECORDS_PER_BLOCK*BLOCKS_PER_EXTENT
SECTORS_IN_BLOCK = [ [0x00,0x06,0x0C,0x03], #block 0 [0x09,0x0F,0x0E,0x05], #block 1 [0x0B,0x02,0x08,0x07], #block 2 [0x0D,0x04,0x0A,0x01]

Public Class methods

CPM DIR looks like this: $00 User number, or E5h if it‘s a free entry $01..0B Filename + extension: 8+3 characters $0C..0D Extent number of this entry $0E ??? $0F Number of 128-byte records allocated in this extant $10..1F Allocation map for this directory entry

[Validate]