cdf

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: GPL-3.0, GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cdf implemnents the various CDF type cartridge mappers including CDFJ. It was developed with reference to Darrell Spice's CDJF blog and the source to the various example ROMs therein

https://atariage.com/forums/forum/262-cdfj/

Also, it seems that most complete survey of details for this cartridge type is the Stella source code. Therefore, I have resorted to the study of the CartCDF.cxx file as found in Stella 6.4.

Note that all CDF formats rely on the arm7 package.

Index

Constants

View Source
const (
	DSCOMM = 32
	DSJMP  = 33
)

registers should be accessed via readDatastreamPointer() and updateDatastreamPointer(). Actually reading the data in the data stream should be done by streamData().

The following values can be used for convenience. The numbered datastreams can be accessed numerically as expected.

The AMPLITUDE register must be accessed with version.amplitude because it can change depending on the CDF version being emulated.

Variables

This section is empty.

Functions

func NewCDF

func NewCDF(version byte, data []byte) (mapper.CartMapper, error)

NewCDF is the preferred method of initialisation for the harmony type.

Types

type Registers

type Registers struct {
	MusicFetcher [3]musicDataFetcher
	FastFetch    bool
	SampleMode   bool

	Datastream [8]datastream
}

Registers implements mappers.Registers.

func (Registers) String

func (r Registers) String() string

type State

type State struct {
	// contains filtered or unexported fields
}

func (*State) Snapshot

func (s *State) Snapshot() *State

type Static

type Static struct {
	// contains filtered or unexported fields
}

Static implements the bus.CartStatic interface.

func (*Static) MapAddress

func (stc *Static) MapAddress(addr uint32, write bool) (*[]byte, uint32)

MapAddress implements the arm7tdmi.SharedMemory interface.

func (*Static) ResetVectors

func (stc *Static) ResetVectors() (uint32, uint32, uint32)

ResetVectors implements the arm7tdmi.SharedMemory interface.

func (*Static) Snapshot

func (stc *Static) Snapshot() *Static

Jump to

Keyboard shortcuts

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