Documentation ¶
Index ¶
- Constants
- func IsDiskette(data []byte) bool
- type BlockDisk
- type Diskette
- type FileWoz
- func (f *FileWoz) DumpTrackAsNib(quarterTrack int) []uint8
- func (f *FileWoz) DumpTrackAsWoz(quarterTrack int) []uint8
- func (f *FileWoz) GetNextBitAndPosition(position uint32, positionMax uint32, quarterTrack int) (bool, uint32, uint32)
- func (f *FileWoz) SetBit(value bool, position uint32, positionMax uint32, quarterTrack int)
Constants ¶
View Source
const ( // ProDosBlockSize is the size of the blocks on the ProDOS devices ProDosBlockSize = uint32(512) )
Variables ¶
This section is empty.
Functions ¶
func IsDiskette ¶
IsDiskette returns true if the files looks like a 5 1/4 diskette
Types ¶
type BlockDisk ¶
type BlockDisk struct {
// contains filtered or unexported fields
}
BlockDisk is any block device with 512 bytes blocks
func OpenBlockDisk ¶
OpenBlockDisk creates a new block device links to a file
func (*BlockDisk) GetSizeInBlocks ¶
GetSizeInBlocks returns the number of blocks of the device
func (*BlockDisk) IsReadOnly ¶
IsReadOnly returns true if the device is read only
type Diskette ¶
type Diskette interface { PowerOn(cycle uint64) PowerOff(cycle uint64) Read(quarterTrack int, cycle uint64) uint8 Write(quarterTrack int, value uint8, cycle uint64) }
Diskette represents a diskette and it's RW mechanism
type FileWoz ¶
type FileWoz struct { Info woz2Info // contains filtered or unexported fields }
func NewFileWoz ¶
func (*FileWoz) DumpTrackAsNib ¶
func (*FileWoz) DumpTrackAsWoz ¶
func (*FileWoz) GetNextBitAndPosition ¶
Click to show internal directories.
Click to hide internal directories.