elf

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

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")

https://developer.arm.com/documentation/dui0067/d/Chddidgj

Index

Constants

View Source
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) Access added in v0.20.0

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

Access implements the mapper.CartMapper interface.

func (*Elf) AccessPassive added in v0.20.0

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

AccessPassive implements the mapper.CartMapper interface.

func (*Elf) AccessVolatile added in v0.20.0

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

AccessVolatile implements the mapper.CartMapper interface.

func (*Elf) BusStuff

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

BusStuff implements the mapper.CartBusStuff 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

func (cart *Elf) ELFSection(name string) ([]uint8, uint32, bool)

ELFSection implements the coprocessor.CartCoProcRelocatable interface.

func (*Elf) GetBank

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

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

func (cart *Elf) ID() string

ID implements the mapper.CartMapper interface.

func (*Elf) MappedBanks

func (cart *Elf) MappedBanks() string

MappedBanks implements the mapper.CartMapper interface.

func (*Elf) NumBanks

func (cart *Elf) NumBanks() int

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

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

StaticWrite implements the mapper.CartStaticBus interface.

func (*Elf) Reset

func (cart *Elf) Reset()

Reset 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.

func (*Elf) Step

func (cart *Elf) 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