disasm

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

Documentation

Overview

Package disasm provides an NES program disassembler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disasm

type Disasm struct {
	// contains filtered or unexported fields
}

Disasm implements a NES disassembler.

func New

func New(logger *log.Logger, cart *cartridge.Cartridge, options *options.Disassembler) (*Disasm, error)

New creates a new NES disassembler that creates output compatible with the chosen assembler.

func (*Disasm) CodeBaseAddress

func (dis *Disasm) CodeBaseAddress() uint16

CodeBaseAddress returns the calculated code base address.

func (*Disasm) Process

func (dis *Disasm) Process(mainWriter io.Writer, newBankWriter assembler.NewBankWriter) error

Process disassembles the cartridge.

Directories

Path Synopsis
Package assembler defines the available assembler output formats.
Package assembler defines the available assembler output formats.
asm6
Package asm6 provides helpers to create asm6 assembler compatible asm output.
Package asm6 provides helpers to create asm6 assembler compatible asm output.
ca65
Package ca65 provides helpers to create ca65 assembler compatible asm output.
Package ca65 provides helpers to create ca65 assembler compatible asm output.
nesasm
Package nesasm provides helpers to create nesasm assembler compatible asm output.
Package nesasm provides helpers to create nesasm assembler compatible asm output.
Package options contains the program options.
Package options contains the program options.
Package program represents an NES program.
Package program represents an NES program.
Package verification verifies that the generated output file recreates the input.
Package verification verifies that the generated output file recreates the input.
Package writer implements common assembly file writing functionality.
Package writer implements common assembly file writing functionality.

Jump to

Keyboard shortcuts

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