cpu

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Zlib Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPeripherals = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	processor.Registers
	// contains filtered or unexported fields
}

func NewCPU

func NewCPU(peripherals []peripheral.Peripheral) (*CPU, []error)

func (*CPU) Break

func (p *CPU) Break()

func (*CPU) Close

func (p *CPU) Close()

func (*CPU) GetInterruptController

func (p *CPU) GetInterruptController() processor.InterruptController

func (*CPU) GetMappedIODevice

func (p *CPU) GetMappedIODevice(port uint16) memory.IO

func (*CPU) GetMappedMemoryDevice

func (p *CPU) GetMappedMemoryDevice(addr memory.Pointer) memory.Memory

func (*CPU) GetRegisters

func (p *CPU) GetRegisters() *processor.Registers

func (*CPU) GetStats

func (p *CPU) GetStats() processor.Stats

func (*CPU) InByte

func (p *CPU) InByte(port uint16) byte

func (*CPU) InWord

func (p *CPU) InWord(port uint16) uint16

func (*CPU) InstallIODevice

func (p *CPU) InstallIODevice(device memory.IO, from, to uint16) error

func (*CPU) InstallIODeviceAt

func (p *CPU) InstallIODeviceAt(device memory.IO, port ...uint16) error

func (*CPU) InstallInterruptHandler

func (p *CPU) InstallInterruptHandler(handler processor.InterruptHandler, num ...int) error

func (*CPU) InstallMemoryDevice

func (p *CPU) InstallMemoryDevice(device memory.Memory, from, to memory.Pointer) error

func (*CPU) InstallMemoryDeviceAt

func (p *CPU) InstallMemoryDeviceAt(device memory.Memory, addr ...memory.Pointer) error

func (*CPU) OutByte

func (p *CPU) OutByte(port uint16, data byte)

func (*CPU) OutWord

func (p *CPU) OutWord(port uint16, data uint16)

func (*CPU) ReadByte

func (p *CPU) ReadByte(addr memory.Pointer) byte

func (*CPU) ReadWord

func (p *CPU) ReadWord(addr memory.Pointer) uint16

func (*CPU) Reset

func (p *CPU) Reset()

func (*CPU) SetV20Support

func (p *CPU) SetV20Support(b bool)

func (*CPU) Step

func (p *CPU) Step() (int, error)

func (*CPU) WriteByte

func (p *CPU) WriteByte(addr memory.Pointer, data byte)

func (*CPU) WriteWord

func (p *CPU) WriteWord(addr memory.Pointer, data uint16)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL