ace

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: GPL-3.0, GPL-3.0 Imports: 7 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

	DATA_MODER_idx = 0
	ADDR_IDR_idx   = 4
	DATA_IDR_idx   = 8
	DATA_ODR_idx   = 12
	GPIO_SIZE      = 16
)

Variables

This section is empty.

Functions

func NewAce

func NewAce(instance *instance.Instance, version string, data []byte) (mapper.CartMapper, error)

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)

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) BreakpointsEnable added in v0.20.0

func (cart *Ace) BreakpointsEnable(enable bool)

BreakpointsEnable implements the mapper.CartCoProc interface.

func (*Ace) BusStuff

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

BusStuff implements the mapper.CartBusStuff interface.

func (*Ace) CoProcID added in v0.20.0

func (cart *Ace) CoProcID() string

CoProcID implements the mapper.CartCoProc interface.

func (*Ace) CoProcRead16bit added in v0.20.0

func (cart *Ace) CoProcRead16bit(addr uint32) (uint16, bool)

CoProcRead16bit implements the mapper.CartCoProc interface.

func (*Ace) CoProcRead32bit added in v0.20.0

func (cart *Ace) CoProcRead32bit(addr uint32) (uint32, bool)

CoProcRead32bit implements the mapper.CartCoProc interface.

func (*Ace) CoProcRead8bit added in v0.20.0

func (cart *Ace) CoProcRead8bit(addr uint32) (uint8, bool)

CoProcRead8bit implements the mapper.CartCoProc interface.

func (*Ace) CoProcRegister added in v0.20.0

func (cart *Ace) CoProcRegister(n int) (uint32, bool)

CoProcRegister implements the mapper.CartCoProc interface.

func (*Ace) CoProcRegisterSet added in v0.20.0

func (cart *Ace) CoProcRegisterSet(n int, value uint32) bool

CoProcRegister implements the mapper.CartCoProc interface.

func (*Ace) CoProcStackFrame added in v0.20.0

func (cart *Ace) CoProcStackFrame() uint32

CoProcStackFrame implements the mapper.CartCoProc interface.

func (*Ace) CoProcState added in v0.20.0

func (cart *Ace) CoProcState() mapper.CoProcState

CoProcState implements the mapper.CartCoProc interface.

func (*Ace) CopyBanks

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

IterateBank implements the mapper.CartMapper interface.

func (*Ace) ExecutableOrigin added in v0.20.0

func (cart *Ace) ExecutableOrigin() uint32

ExecutableOrigin implements the mapper.CartCoProcNonRelocatable interface.

func (*Ace) GetBank

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

GetBank implements the mapper.CartMapper 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) Patch

func (cart *Ace) Patch(_ int, _ uint8) error

Patch implements the mapper.CartMapper interface.

func (*Ace) Plumb

func (cart *Ace) Plumb()

Plumb implements the mapper.CartMapper interface.

func (*Ace) PlumbFromDifferentEmulation

func (cart *Ace) PlumbFromDifferentEmulation()

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) SetDeveloper added in v0.20.0

func (cart *Ace) SetDeveloper(dev mapper.CartCoProcDeveloper)

SetDeveloper implements the mapper.CartCoProc interface.

func (*Ace) SetDisassembler added in v0.20.0

func (cart *Ace) SetDisassembler(disasm mapper.CartCoProcDisassembler)

SetDisassembler implements the mapper.CartCoProc interface.

func (*Ace) SetYieldHook added in v0.20.0

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

SetYieldHook implements the mapper.CartCoProc 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