dos68

package
v0.0.0-...-f64418a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE_STATUS_NOT_ACTIVE       = 0x00
	FANA                         = 0x00
	FILE_STATUS_SEQUENTIAL_READ  = 0x01
	FASR                         = 0x01
	FILE_STATUS_SEQUENTIAL_WRITE = 0x02
	FASW                         = 0x02
	FILE_STATUS_RANDOM_ACCESS    = 0x03
	FARA                         = 0x03
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskImage

type DiskImage struct {
	fs.Inode
	// contains filtered or unexported fields
}

func OpenImage

func OpenImage(path string) (*DiskImage, error)

func (*DiskImage) FreeSectors

func (i *DiskImage) FreeSectors() int

func (*DiskImage) GetFileContents

func (image *DiskImage) GetFileContents(f floppymount.File) ([]byte, error)

func (*DiskImage) GetFiles

func (i *DiskImage) GetFiles() ([]floppymount.File, error)

func (*DiskImage) GetSector

func (i *DiskImage) GetSector(a floppymount.SectorAddress) ([]byte, error)

func (*DiskImage) OnAdd

func (i *DiskImage) OnAdd(ctx context.Context)

func (*DiskImage) String

func (i *DiskImage) String() string

func (*DiskImage) Tracks

func (i *DiskImage) Tracks() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL