pkgnes

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

Documentation

Index

Constants

View Source
const (
	// See: https://www.nesdev.org/wiki/Cycle_reference_chart
	FreqNTSC = 21477470 // 21.47727 MHz (NTSC) 21.477272 MHz ± 40 Hz
	FreqPAL  = 26601700 // 26.6017 MHz (PAL) 26.601712 MHz ± 50 Hz

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model byte
const (
	NTSC Model = iota
	PAL
)

type NES

type NES struct {
	Memory memory.Master        // shared bus memory used by CPU, etc
	Clk    *clock.Master        // master clock
	CPU    *cpu6502.CPU         // Central Processing Unit
	PPU    *nesppu.PPU          // Picture Processing Unit
	APU    *nesapu.APU          // Audio Processing Unit
	Input  []nesapu.InputDevice // Input devices
	// contains filtered or unexported fields
}

func New

func New(model Model) *NES

func (*NES) Reset

func (nes *NES) Reset()

func (*NES) Start

func (nes *NES) Start()

Typically this runs into a goroutine go nes.Start(pkgnes.NTSC)

Jump to

Keyboard shortcuts

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