Documentation ¶
Overview ¶
Package writer implements common assembly file writing functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssemblerWriter ¶
type AssemblerWriter interface {
Write() error
}
AssemblerWriter defines a shared interface used by the different assembler compatibility packages. Their constructors need to return this shared interface, having them return the actual type instead of the interface results in compiler errors for the constructor variable that they are assigned to.
type Options ¶
type Options struct { DirectivePrefix string // nesasm requires a space before a directive OffsetComments bool }
Options of the writer.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements common assembly file writing functionality.
func (Writer) BundleDataWrites ¶
BundleDataWrites bundles writes of data bytes to print dataBytesPerLine bytes per line.
func (Writer) OutputAliasMap ¶
OutputAliasMap outputs an alias map, for constants or variables.
func (Writer) ProcessPRG ¶
ProcessPRG processes the PRG segment and writes all code offsets, labels and their comments.
func (Writer) WriteCommentHeader ¶
WriteCommentHeader writes the CRC32 checksums and code base address as comments to the output.