ace

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package ace implements the ACE cartridge mapper.

Index

Constants

View Source
const (
	DATA_MODER = 0x40020800
	ADDR_IDR   = 0x40020c10
	DATA_IDR   = 0x40020810
	DATA_ODR   = 0x40020814

	GPIO_ORIGIN = 0x40020800
	GPIO_MEMTOP = 0x40020cff
)

Variables

This section is empty.

Functions

func NewAce

NewAce is the preferred method of initialisation for the Ace type.

Types

type Ace

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

Ace implements the mapper.CartMapper interface.

func (*Ace) ARMinterrupt

func (cart *Ace) ARMinterrupt(addr uint32, val1 uint32, val2 uint32) (arm.ARMinterruptReturn, error)

implements arm.CartridgeHook interface.

func (*Ace) Access added in v0.20.0

func (cart *Ace) Access(addr uint16, _ bool) (uint8, uint8, error)

Access implements the mapper.CartMapper interface.

func (*Ace) AccessPassive added in v0.20.0

func (cart *Ace) AccessPassive(addr uint16, data uint8) error

AccessPassive implements the mapper.CartMapper interface.

func (*Ace) AccessVolatile added in v0.20.0

func (cart *Ace) AccessVolatile(addr uint16, data uint8, _ bool) error

AccessVolatile implements the mapper.CartMapper interface.

func (*Ace) BusStuff

func (cart *Ace) BusStuff() (uint8, bool)

BusStuff implements the mapper.CartBusStuff interface.

func (*Ace) CoProcExecutionState added in v0.25.0

func (cart *Ace) CoProcExecutionState() coprocessor.CoProcExecutionState

CoProcExecutionState implements the coprocessor.CartCoProcBus interface.

func (*Ace) CopyBanks

func (cart *Ace) CopyBanks() []mapper.BankContent

CopyBanks implements the mapper.CartMapper interface.

func (*Ace) ExecutableOrigin added in v0.20.0

func (cart *Ace) ExecutableOrigin() uint32

ExecutableOrigin implements the coprocessor.CartCoProcRelocatable interface.

func (*Ace) GetBank

func (cart *Ace) GetBank(_ uint16) mapper.BankInfo

GetBank implements the mapper.CartMapper interface.

func (*Ace) GetCoProc added in v0.25.0

func (cart *Ace) GetCoProc() coprocessor.CartCoProc

CoProcRegister implements the coprocessor.CartCoProcBus interface.

func (*Ace) GetStatic added in v0.20.0

func (cart *Ace) GetStatic() mapper.CartStatic

GetStatic implements the mapper.CartStaticBus interface.

func (*Ace) ID

func (cart *Ace) ID() string

ID implements the mapper.CartMapper interface.

func (*Ace) MappedBanks

func (cart *Ace) MappedBanks() string

MappedBanks implements the mapper.CartMapper interface.

func (*Ace) NumBanks

func (cart *Ace) NumBanks() int

NumBanks implements the mapper.CartMapper interface.

func (*Ace) Plumb

func (cart *Ace) Plumb(env *environment.Environment)

Plumb implements the mapper.CartMapper interface.

func (*Ace) PlumbFromDifferentEmulation

func (cart *Ace) PlumbFromDifferentEmulation(env *environment.Environment)

Plumb implements the mapper.CartMapper interface.

func (*Ace) PutStatic added in v0.20.0

func (cart *Ace) PutStatic(segment string, idx int, data uint8) bool

StaticWrite implements the mapper.CartStaticBus interface.

func (*Ace) Reset

func (cart *Ace) Reset()

Reset implements the mapper.CartMapper interface.

func (*Ace) SetYieldHook added in v0.20.0

func (cart *Ace) SetYieldHook(hook coprocessor.CartYieldHook)

SetYieldHook implements the coprocessor.CartCoProcBus interface.

func (*Ace) Snapshot

func (cart *Ace) Snapshot() mapper.CartMapper

Snapshot implements the mapper.CartMapper interface.

func (*Ace) Step

func (cart *Ace) Step(clock float32)

Step implements the mapper.CartMapper interface.

Jump to

Keyboard shortcuts

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