Documentation ¶
Overview ¶
Package m6502 is the MOS Technology 6502 series processor.
Index ¶
Constants ¶
View Source
const ( // FlagC is the carry flag FlagC = uint8(1 << 0) // FlagZ is the zero flag FlagZ = uint8(1 << 1) // FlagI is the interrupt disable flag FlagI = uint8(1 << 2) // FlagD is the decimal mode flag FlagD = uint8(1 << 3) // FlagB is the break flag FlagB = uint8(1 << 4) // Flag5 is the 5th bit flag, always on Flag5 = uint8(1 << 5) // FlagV is the overflow flag FlagV = uint8(1 << 6) // FlagN is the signed/negative flag FlagN = uint8(1 << 7) )
Variables ¶
This section is empty.
Functions ¶
func Formatter ¶
func Formatter() rcs.CodeFormatter
Types ¶
type CPU ¶
type CPU struct { Name string A uint8 // accumulator X uint8 // x register Y uint8 // y register SP uint8 // stack pointer SR uint8 // status register IRQ bool // interrupt request BreakFunc func() WatchIRQ bool WatchBRK bool WatchStack bool // contains filtered or unexported fields }
CPU is the MOS Technology 6502 series processor.
func (*CPU) NewDisassembler ¶
func (c *CPU) NewDisassembler() *rcs.Disassembler
NewDisassembler creates a disassembler that can handle 6502 machine code.
Click to show internal directories.
Click to hide internal directories.