Documentation ¶
Index ¶
- func Load(width int, buf []byte, write func(int, uint64)) int
- type AddrOffset
- type Bus
- type BusHandler
- type BusHandlerFunc
- type Device
- type MemMap
- type Memory
- func (mem *Memory) Clear(address int, len int)
- func (mem *Memory) HandleBus(bus Bus) Bus
- func (mem *Memory) Load(address int, buf []byte) int
- func (mem *Memory) Read(address int) uint16
- func (mem *Memory) Write(address int, data uint16)
- func (mem *Memory) WriteField(address, bits, shift int, data uint16)
- type ROM
- type ShadowMem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddrOffset ¶
type AddrOffset struct { Offset int Handler BusHandler }
AddrOffset is a BusHandler that subtracts Offset from the address before passing it off to a sub-handler
func (*AddrOffset) HandleBus ¶
func (off *AddrOffset) HandleBus(bus Bus) Bus
type BusHandler ¶
BusHandler handles a bus transaction
type BusHandlerFunc ¶
BusHandlerFunc implements BusHandler with a func
var StdoutWriter BusHandlerFunc = stdoutWriter
func (BusHandlerFunc) HandleBus ¶
func (fn BusHandlerFunc) HandleBus(bus Bus) Bus
type Device ¶
type Device struct {
Addr, Size int
Handler BusHandler
}
Device is a memory mapped device
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) WriteField ¶
Click to show internal directories.
Click to hide internal directories.