ca65

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: 12 Imported by: 0

Documentation

Overview

Package ca65 provides helpers to create ca65 assembler compatible asm output.

Index

Constants

This section is empty.

Variables

View Source
var ParamConfig = parameter.Config{
	ZeroPagePrefix: "z:",
	AbsolutePrefix: "a:",
	IndirectPrefix: "(",
	IndirectSuffix: ")",
}

ParamConfig configures the instruction parameter string converter.

Functions

func AssembleUsingExternalApp

func AssembleUsingExternalApp(asmFile, objectFile, outputFile string, conf Config) error

AssembleUsingExternalApp calls the external assembler and linker to generate a .nes ROM from the given asm file.

func GenerateMapperConfig

func GenerateMapperConfig(conf Config) string

GenerateMapperConfig generates a ca65 linker config dynamically based on the passed ROM settings.

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 Config

type Config struct {
	PrgBase int
	PRGSize int
	CHRSize int
}

Config holds the ROM building configuration.

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

Jump to

Keyboard shortcuts

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