nes

package
v0.0.0-...-ea41a2c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const MemSize = 0xFFFF

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteReadWriter

type ByteReadWriter interface {
	Read(debug bool) byte
	Write(val byte)
}

type MemoryMap

type MemoryMap map[uint16]ByteReadWriter

type NES

type NES struct {
	Memory    []*byte `json:"-"`
	Stack     []*byte `json:"-"`
	Cartridge []*byte `json:"-"`

	MemoryMap map[uint16]ByteReadWriter

	Debug bool
}

func NewNES

func NewNES() *NES

func (*NES) Get

func (n *NES) Get(address uint16) byte

func (*NES) GetRange

func (n *NES) GetRange(start, end uint16) []*byte

func (*NES) LoadRom

func (n *NES) LoadRom(r rom.ROM)

func (*NES) PowerUp

func (n *NES) PowerUp()

func (*NES) Reset

func (n *NES) Reset()

func (*NES) Set

func (n *NES) Set(address uint16, value byte)

Jump to

Keyboard shortcuts

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