Documentation
¶
Overview ¶
Package asm6 provides helpers to create asm6 assembler compatible asm output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ParamConfig = parameter.Config{
ZeroPagePrefix: "",
AbsolutePrefix: "a:",
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 ¶ added in v0.2.2
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. nolint:funlen, cyclop
Click to show internal directories.
Click to hide internal directories.