Versions in this module Expand all Collapse all v0 v0.1.0 Dec 26, 2025 Changes in this version + const BANK_ABT + const BANK_FIQ + const BANK_INVALID + const BANK_IRQ + const BANK_NONE + const BANK_SVC + const BANK_UND + const BIT_CF + const BIT_FF + const BIT_IF + const BIT_NF + const BIT_QF + const BIT_TF + const BIT_VF + const BIT_ZF + const BUS_BURST + const BUS_CODE + const BUS_SEQ + const CYCLE_C + const CYCLE_D + const CYCLE_I + const PRIV_ABORT + const PRIV_FIQ + const PRIV_IRQ + const PRIV_SUPERVISOR + const PRIV_SYSTEM + const PRIV_UNDEFINED + const PRIV_USER + func MajorVersion(model Model) int + type Bank [7]uint32 + type Bus interface + CodeRead16 func(addr uint32, flag uint32) uint32 + CodeRead32 func(addr uint32, flag uint32) uint32 + Read func(width int, addr uint32, flag uint32) uint32 + Write func(width int, addr, data, flag uint32) + type CPU struct + BlockTransfer bool + Coprocs [16]Coprocessor + Debugger Debugger + ExceptionVector uint32 + IRQ bool + Model Model + NonSeq bool + func New(model Model, bus Bus, tick func(category uint32, cycles int64)) *CPU + func (c *CPU) Coproc(id int, cp Coprocessor) *CPU + func (c *CPU) CreateSnapshot() Snapshot + func (c *CPU) DataRead16(addr uint32) uint32 + func (c *CPU) DataRead16S(addr uint32) uint32 + func (c *CPU) DataRead32(addr uint32) uint32 + func (c *CPU) DataRead8(addr uint32) uint32 + func (c *CPU) DataWrite16(addr uint32, data16 uint32) + func (c *CPU) DataWrite32(addr uint32, data32 uint32) + func (c *CPU) DataWrite8(addr uint32, data8 uint32) + func (c *CPU) IsThumb() bool + func (c *CPU) MDR() uint32 + func (c *CPU) PC() uint32 + func (c *CPU) Reset() + func (c *CPU) RestoreSnapshot(snap *Snapshot) error + func (c *CPU) SetR(regNum uint32, val uint32) + func (c *CPU) Step() + func (c *CPU) UpdateSnapshot(snap *Snapshot) error + type Coprocessor interface + MCR func(op1, cn, cm, op2, val uint32) + MRC func(op1, cn, cm, op2 uint32) uint32 + type Debugger interface + InstructionHook func(id int, pc uint64) + PrintLog func(message string) + type Inst struct + Addr uint32 + Opcode uint32 + Thumb bool + type Model uint8 + const ARM7TDMI + const ARM946E_S + type Pipeline struct + Decode Inst + Execute Inst + Fetch Inst + Reload bool + type Registers struct + Bank [6]Bank + CPSR uint32 + R [16]uint32 + SPSR [5]uint32 + func (r *Registers) Priviledged() bool + func (r *Registers) Reset() + func (r *Registers) ReturnFromException() + func (r *Registers) String() string + func (r *Registers) SwitchMode(mode uint8) + type Snapshot struct + BlockTransfer bool + Carry bool + ExceptionVector uint32 + GPR [16]uint32 + Header uint64 + IRQ bool + NonSeq bool + PSR [6]uint32 + Pipeline Pipeline + RegBanks [6]Bank + Reserved [1024]uint8