Versions in this module Expand all Collapse all v0 v0.2.0 Feb 11, 2025 Changes in this version + const Break + const Carry + const Decimal + const InterruptDisable + const Negative + const Overflow + const StackAddr + const Unused + const Zero + var ErrUnsupportedOpcode = errors.New("unsupported opcode") + type AddressingMode uint8 + const Absolute + const AbsoluteX + const AbsoluteY + const Accumulator + const Immediate + const Implicit + const Indirect + const IndirectX + const IndirectY + const Relative + const ZeroPage + const ZeroPageX + const ZeroPageY + func (i AddressingMode) String() string + type CPU struct + Accumulator byte + Cycles uint + IRQPending bool + NMIPending bool + ProgramCounter uint16 + RegisterX byte + RegisterY byte + StackPointer byte + Stall uint16 + Status Status + StepErr error + func New(b memory.ReadSafeWrite) *CPU + func (c *CPU) AddNMI() + func (c *CPU) AddStall(stall uint16) + func (c *CPU) GetCycles() uint + func (c *CPU) ReadMem(addr uint16) byte + func (c *CPU) ReadMem16(addr uint16) uint16 + func (c *CPU) ReadMem16Bug(addr uint16) uint16 + func (c *CPU) Reset() + func (c *CPU) Step() uint + func (c *CPU) Trace() string + func (c *CPU) WriteMem(addr uint16, data byte) + func (c *CPU) WriteMem16(addr uint16, data uint16) + type Instruction func(c *CPU, mode AddressingMode) + type InstructionName uint8 + const ADC + const AHX + const ALR + const ANC + const AND + const ARR + const ASL + const AXS + const BCC + const BCS + const BEQ + const BIT + const BMI + const BNE + const BPL + const BRK + const BVC + const BVS + const CLC + const CLD + const CLI + const CLV + const CMP + const CPX + const CPY + const DCP + const DEC + const DEX + const DEY + const EOR + const INC + const INX + const INY + const ISB + const JMP + const JSR + const LAS + const LAX + const LDA + const LDX + const LDY + const LSR + const LXA + const NOP + const ORA + const PHA + const PHP + const PLA + const PLP + const RLA + const ROL + const ROR + const RRA + const RTI + const RTS + const SAX + const SBC + const SEC + const SED + const SEI + const SHX + const SHY + const SLO + const SRE + const STA + const STX + const STY + const TAS + const TAX + const TAY + const TSX + const TXA + const TXS + const TYA + const XAA + func (i InstructionName) String() string + type OpCode struct + Cycles uint8 + Exec Instruction + Len uint8 + Mode AddressingMode + Name InstructionName + Undocumented bool + func (o *OpCode) Code() int + func (o *OpCode) String() string + type Status struct + Break bool + Carry bool + Decimal bool + InterruptDisable bool + Negative bool + Overflow bool + Zero bool + func (s *Status) Get() byte + func (s *Status) Set(data byte)