Documentation
¶
Overview ¶
Package disasm implements a 6502 instruction set disassembler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Disassemble ¶
func Disassemble(c *cpu.CPU, addr uint16, flags Flags, anno string, theme *Theme) (line string, next uint16)
Disassemble the machine code at memory address addr. Return a string representing the disassembled instruction and the address of the next instruction.
func GetCompactRegisterString ¶
GetCompactRegisterString returns a compact string describing the contents of the 6502 registers. It excludes the program counter and stack pointer.
func GetCyclesString ¶
GetCyclesString returns a string describing the number of elapsed CPU cycles.
func GetRegisterString ¶
GetRegisterString returns a string describing the contents of the 6502 registers. func GetRegisterString(r *cpu.Registers, theme *Theme) string {
Types ¶
type Flags ¶
type Flags uint8
const ( ShowAddress Flags = 1 << iota ShowCode ShowInstruction ShowRegisters ShowCycles ShowAnnotations ShowBasic = ShowAddress | ShowCode | ShowInstruction | ShowAnnotations ShowFull = ShowAddress | ShowCode | ShowInstruction | ShowRegisters | ShowCycles )
Click to show internal directories.
Click to hide internal directories.