Documentation
¶
Index ¶
- Constants
- type CPU
- func (c *CPU) DisassembleCurrentPC() string
- func (c *CPU) Dissasm() string
- func (cpu *CPU) Enable(state bool)
- func (c *CPU) Execute() uint32
- func (cpu *CPU) GetAllCycles() uint64
- func (cpu *CPU) GetCycles() uint32
- func (cpu *CPU) GetName() string
- func (c *CPU) GetRegisters() map[string]uint32
- func (cpu *CPU) GetType() uint
- func (cpu *CPU) IsEnabled() bool
- func (c *CPU) Read_8(addr uint32) byte
- func (c *CPU) Reset()
- func (cpu *CPU) ResetCycles()
- func (c *CPU) SetPC(val uint32)
- func (c *CPU) SetRegister(reg string, val uint32) error
- func (c *CPU) StatusString() string
- func (c *CPU) Step() uint32
- func (c *CPU) TriggerIRQ(level byte)
- func (c *CPU) Write_8(addr uint32, val byte)
Constants ¶
View Source
const MODE_SV = 1
View Source
const MODE_USER = 0
cpu modes
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPU ¶
type CPU struct { Speed uint32 // in milliseconds Type uint Cycles uint32 // number of cycles used by last step AllCycles uint64 // cumulative number of cycles of CPU instance // contains filtered or unexported fields }
func (*CPU) DisassembleCurrentPC ¶
func (*CPU) GetAllCycles ¶
to fulfill interface, that doesn't allow direct acces to fields
func (*CPU) GetRegisters ¶
func (*CPU) ResetCycles ¶
func (cpu *CPU) ResetCycles()
to fulfill interface, that doesn't allow direct acces to fields
func (*CPU) StatusString ¶
func (*CPU) TriggerIRQ ¶
Click to show internal directories.
Click to hide internal directories.