ppu

package
v0.0.0-...-86b10a5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HEIGHT = 240
View Source
const WIDTH = 256

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameRenderer

type FrameRenderer interface {
	UpdateFrame(*[WIDTH * HEIGHT]uint8)
}

type PPU

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

func New

func New(mapper mapper.Mapper, renderer FrameRenderer) *PPU

func (*PPU) CurrentFrames

func (p *PPU) CurrentFrames() uint64

func (*PPU) ReadRegister

func (p *PPU) ReadRegister(addr uint16) uint8

func (*PPU) Step

func (p *PPU) Step(intr *cpu.Interrupt)

func (*PPU) WriteRegister

func (p *PPU) WriteRegister(addr uint16, value uint8)

type Sprite

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

func (Sprite) String

func (s Sprite) String() string

Jump to

Keyboard shortcuts

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