Documentation ¶
Index ¶
- Constants
- type CPU
- func (p *CPU) Break()
- func (p *CPU) Close()
- func (p *CPU) GetInterruptController() processor.InterruptController
- func (p *CPU) GetMappedIODevice(port uint16) memory.IO
- func (p *CPU) GetMappedMemoryDevice(addr memory.Pointer) memory.Memory
- func (p *CPU) GetRegisters() *processor.Registers
- func (p *CPU) GetStats() processor.Stats
- func (p *CPU) InByte(port uint16) byte
- func (p *CPU) InWord(port uint16) uint16
- func (p *CPU) InstallIODevice(device memory.IO, from, to uint16) error
- func (p *CPU) InstallIODeviceAt(device memory.IO, port ...uint16) error
- func (p *CPU) InstallInterruptHandler(handler processor.InterruptHandler, num ...int) error
- func (p *CPU) InstallMemoryDevice(device memory.Memory, from, to memory.Pointer) error
- func (p *CPU) InstallMemoryDeviceAt(device memory.Memory, addr ...memory.Pointer) error
- func (p *CPU) OutByte(port uint16, data byte)
- func (p *CPU) OutWord(port uint16, data uint16)
- func (p *CPU) ReadByte(addr memory.Pointer) byte
- func (p *CPU) ReadWord(addr memory.Pointer) uint16
- func (p *CPU) Reset()
- func (p *CPU) SetV20Support(b bool)
- func (p *CPU) Step() (int, error)
- func (p *CPU) WriteByte(addr memory.Pointer, data byte)
- func (p *CPU) WriteWord(addr memory.Pointer, data uint16)
Constants ¶
View Source
const MaxPeripherals = 32
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
func NewCPU ¶
func NewCPU(peripherals []peripheral.Peripheral) (*CPU, []error)
func (*CPU) GetInterruptController ¶
func (p *CPU) GetInterruptController() processor.InterruptController
func (*CPU) GetMappedMemoryDevice ¶
func (*CPU) GetRegisters ¶
func (*CPU) InstallIODevice ¶
func (*CPU) InstallIODeviceAt ¶
func (*CPU) InstallInterruptHandler ¶
func (p *CPU) InstallInterruptHandler(handler processor.InterruptHandler, num ...int) error
func (*CPU) InstallMemoryDevice ¶
func (*CPU) InstallMemoryDeviceAt ¶
func (*CPU) SetV20Support ¶
Click to show internal directories.
Click to hide internal directories.