nescartridge

package
v0.0.0-...-fa24f98 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMapper

func RegisterMapper(mt MapperType, f func(*Data) Mapper)

Types

type Data

type Data struct {
	Mapper Mapper
	// contains filtered or unexported fields
}

func Load

func Load(fn string) (*Data, error)

func (*Data) CHR

func (d *Data) CHR() memory.Handler

func (*Data) Close

func (d *Data) Close() error

func (*Data) PRG

func (d *Data) PRG() []byte

func (*Data) Setup

func (d *Data) Setup(nes *pkgnes.NES) error

type MMC1

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

https://www.nesdev.org/wiki/MMC1

func (*MMC1) Length

func (m *MMC1) Length() uint16

func (*MMC1) MemRead

func (m *MMC1) MemRead(offset uint16) byte

func (*MMC1) MemWrite

func (m *MMC1) MemWrite(offset uint16, v byte) byte

func (*MMC1) Ptr

func (m *MMC1) Ptr() uintptr

func (*MMC1) String

func (m *MMC1) String() string

type Mapper

type Mapper interface {
	// contains filtered or unexported methods
}

type MapperNROM

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

https://www.nesdev.org/wiki/NROM

type MapperType

type MapperType byte
const (
	NROM MapperType = 0x00 // Nintendo cartridge boards NES-NROM-128, NES-NROM-256, their HVC counterparts, and clone boards
)

Jump to

Keyboard shortcuts

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