Documentation ¶
Overview ¶
Package ace implements the ACE cartridge mapper.
Index ¶
- Constants
- func NewAce(env *environment.Environment, loader cartridgeloader.Loader) (mapper.CartMapper, error)
- type Ace
- func (cart *Ace) ARMinterrupt(addr uint32, val1 uint32, val2 uint32) (arm.ARMinterruptReturn, error)
- func (cart *Ace) Access(addr uint16, _ bool) (uint8, uint8, error)
- func (cart *Ace) AccessPassive(addr uint16, data uint8) error
- func (cart *Ace) AccessVolatile(addr uint16, data uint8, _ bool) error
- func (cart *Ace) BusStuff() (uint8, bool)
- func (cart *Ace) CoProcExecutionState() coprocessor.CoProcExecutionState
- func (cart *Ace) CopyBanks() []mapper.BankContent
- func (cart *Ace) ExecutableOrigin() uint32
- func (cart *Ace) GetBank(_ uint16) mapper.BankInfo
- func (cart *Ace) GetCoProc() coprocessor.CartCoProc
- func (cart *Ace) GetStatic() mapper.CartStatic
- func (cart *Ace) ID() string
- func (cart *Ace) MappedBanks() string
- func (cart *Ace) NumBanks() int
- func (cart *Ace) Plumb(env *environment.Environment)
- func (cart *Ace) PlumbFromDifferentEmulation(env *environment.Environment)
- func (cart *Ace) PutStatic(segment string, idx int, data uint8) bool
- func (cart *Ace) Reset()
- func (cart *Ace) SetYieldHook(hook coprocessor.CartYieldHook)
- func (cart *Ace) Snapshot() mapper.CartMapper
- func (cart *Ace) Step(clock float32)
Constants ¶
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 ¶
func NewAce(env *environment.Environment, loader cartridgeloader.Loader) (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) AccessPassive ¶ added in v0.20.0
AccessPassive implements the mapper.CartMapper interface.
func (*Ace) AccessVolatile ¶ added in v0.20.0
AccessVolatile implements the mapper.CartMapper 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
ExecutableOrigin implements the coprocessor.CartCoProcRelocatable 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) MappedBanks ¶
MappedBanks 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) 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.