nesasm

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

func AssembleUsingExternalApp(asmFile, outputFile string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL