Documentation ¶
Overview ¶
Package nesasm provides helpers to create nesasm assembler compatible asm output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParamConfig = parameter.Config{
ZeroPagePrefix: "<",
AbsolutePrefix: "",
IndirectPrefix: "[",
IndirectSuffix: "]",
}
ParamConfig configures the instruction parameter string converter.
Functions ¶
func AssembleUsingExternalApp ¶
AssembleUsingExternalApp calls the external assembler and linker to generate a .nes ROM from the given asm file.
func New ¶
func New(app *program.Program, options *options.Disassembler, mainWriter io.Writer, newBankWriter assembler.NewBankWriter) writer.AssemblerWriter
New creates a new file writer. nolint: ireturn
Types ¶
type FileWriter ¶
type FileWriter struct {
// contains filtered or unexported fields
}
FileWriter writes the assembly file content.
func (FileWriter) Write ¶
func (f FileWriter) Write() error
Write writes the assembly file content including header, footer, code and data.
Click to show internal directories.
Click to hide internal directories.