Documentation ¶
Overview ¶
Package asm implements a 6502 macro assembler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assembly ¶
type Assembly struct { Code []byte // Assembled machine code Errors []string // Errors encountered during assembly }
Assembly contains the assembled machine code and other data associated with the machine code.
type SourceLine ¶
type SourceLine struct { Address int // Machine code address FileIndex int // Source code file index Line int // Source code line number }
A SourceLine represents a mapping between a machine code address and the source code file and line number used to generate it.
type SourceMap ¶
type SourceMap struct { Origin uint16 Size uint32 CRC uint32 Files []string Lines []SourceLine Exports []Export }
A SourceMap describes the mapping between source code line numbers and assembly code addresses.
func (*SourceMap) ClearRange ¶
ClearRange clears portions of the source map that reference the address range between `origin` and `origin+size`.
func (*SourceMap) Find ¶
Find searches the source map for a source code line corresponding to the requested address.
Click to show internal directories.
Click to hide internal directories.