cartridge

package
Version: v0.0.0-...-7cd2a6a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cartridge

type Cartridge struct {
	Mirroring ines.MirroringDirection
	// contains filtered or unexported fields
}

Cartridge represents a NES cartridge from a software perspective

func Load

func Load(reader io.Reader) (cart *Cartridge, err error)

Load cartridge from io.Reader

func (*Cartridge) CpuRead

func (cart *Cartridge) CpuRead(addr uint16) (data uint8, flag bool)

func (*Cartridge) CpuWrite

func (cart *Cartridge) CpuWrite(addr uint16, data uint8) (flag bool)

func (*Cartridge) IsImageValid

func (cart *Cartridge) IsImageValid() bool

func (*Cartridge) PpuRead

func (cart *Cartridge) PpuRead(addr uint16) (data uint8, flag bool)

func (*Cartridge) PpuWrite

func (cart *Cartridge) PpuWrite(addr uint16, data uint8) (flag bool)

Jump to

Keyboard shortcuts

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