Documentation ¶
Overview ¶
Package ace implements the ELF cartridge mapper.
ARM ELF/relocation information in the legacy ARM development suite. Convenient copy of relevant document (using the ARM document numbering as reference in the comments - "SWS ESPC 0003 A-08")
Index ¶
- Constants
- func NewElf(env *environment.Environment, pathToROM string, inACE bool) (mapper.CartMapper, error)
- type Elf
- func (cart *Elf) ARMinterrupt(addr uint32, val1 uint32, val2 uint32) (arm.ARMinterruptReturn, error)
- func (cart *Elf) Access(addr uint16, _ bool) (uint8, uint8, error)
- func (cart *Elf) AccessPassive(addr uint16, data uint8) error
- func (cart *Elf) AccessVolatile(addr uint16, data uint8, _ bool) error
- func (cart *Elf) BusStuff() (uint8, bool)
- func (cart *Elf) CoProcExecutionState() coprocessor.CoProcExecutionState
- func (cart *Elf) CopyBanks() []mapper.BankContent
- func (cart *Elf) ELFSection(name string) ([]uint8, uint32, bool)
- func (cart *Elf) GetBank(_ uint16) mapper.BankInfo
- func (cart *Elf) GetCoProc() coprocessor.CartCoProc
- func (cart *Elf) GetStatic() mapper.CartStatic
- func (cart *Elf) ID() string
- func (cart *Elf) MappedBanks() string
- func (cart *Elf) NumBanks() int
- func (cart *Elf) Plumb(env *environment.Environment)
- func (cart *Elf) PlumbFromDifferentEmulation(env *environment.Environment)
- func (cart *Elf) PutStatic(segment string, idx int, data uint8) bool
- func (cart *Elf) Reset()
- func (cart *Elf) SetYieldHook(hook coprocessor.CartYieldHook)
- func (cart *Elf) Snapshot() mapper.CartMapper
- func (cart *Elf) Step(clock float32)
Constants ¶
const ( ADDR_IDR = 0x10 DATA_IDR = 0x20 DATA_ODR = 0x30 DATA_MODER = 0x40 GPIO_MEMTOP = 0x50 )
Variables ¶
This section is empty.
Functions ¶
func NewElf ¶
func NewElf(env *environment.Environment, pathToROM string, inACE bool) (mapper.CartMapper, error)
NewElf is the preferred method of initialisation for the Elf type.
Types ¶
type Elf ¶
type Elf struct {
// contains filtered or unexported fields
}
Elf implements the mapper.CartMapper interface.
func (*Elf) ARMinterrupt ¶
func (cart *Elf) ARMinterrupt(addr uint32, val1 uint32, val2 uint32) (arm.ARMinterruptReturn, error)
implements arm.CartridgeHook interface.
func (*Elf) AccessPassive ¶ added in v0.20.0
AccessPassive implements the mapper.CartMapper interface.
func (*Elf) AccessVolatile ¶ added in v0.20.0
AccessVolatile implements the mapper.CartMapper interface.
func (*Elf) CoProcExecutionState ¶ added in v0.25.0
func (cart *Elf) CoProcExecutionState() coprocessor.CoProcExecutionState
CoProcExecutionState implements the coprocessor.CartCoProcBus interface.
func (*Elf) CopyBanks ¶
func (cart *Elf) CopyBanks() []mapper.BankContent
IterateBank implements the mapper.CartMapper interface.
func (*Elf) ELFSection ¶
ELFSection implements the coprocessor.CartCoProcRelocatable interface.
func (*Elf) GetCoProc ¶ added in v0.25.0
func (cart *Elf) GetCoProc() coprocessor.CartCoProc
CoProcRegister implements the coprocessor.CartCoProcBus interface.
func (*Elf) GetStatic ¶ added in v0.20.0
func (cart *Elf) GetStatic() mapper.CartStatic
GetStatic implements the mapper.CartStaticBus interface.
func (*Elf) MappedBanks ¶
MappedBanks implements the mapper.CartMapper interface.
func (*Elf) Plumb ¶
func (cart *Elf) Plumb(env *environment.Environment)
Plumb implements the mapper.CartMapper interface.
func (*Elf) PlumbFromDifferentEmulation ¶
func (cart *Elf) PlumbFromDifferentEmulation(env *environment.Environment)
Plumb implements the mapper.CartMapper interface.
func (*Elf) SetYieldHook ¶ added in v0.20.0
func (cart *Elf) SetYieldHook(hook coprocessor.CartYieldHook)
SetYieldHook implements the coprocessor.CartCoProcBus interface.
func (*Elf) Snapshot ¶
func (cart *Elf) Snapshot() mapper.CartMapper
Snapshot implements the mapper.CartMapper interface.