ppu

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// VRAMSize is 96KB
	VRAMSize = 96 * 1024
	// OAMSize is 1KB
	OAMSize = 1 * 1024
	// PaletteRAMSize is 1KB
	PaletteRAMSize = 1 * 1024
	NumPixels      = 240 * 160
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PPU

type PPU struct {
	HBlank bool
	VBlank bool
	// contains filtered or unexported fields
}

func NewPPU

func NewPPU(config *config.Config, mmio *memory.MMIO, ioRAM []byte) *PPU

func (*PPU) ClearFrameReady

func (p *PPU) ClearFrameReady()

func (*PPU) DumpVRAM

func (p *PPU) DumpVRAM() string

DumpVRAM returns a string representation of the VRAM

func (*PPU) FrameBuffer

func (p *PPU) FrameBuffer() []byte

func (*PPU) FrameReady

func (p *PPU) FrameReady() bool

func (*PPU) Step

func (p *PPU) Step()

Jump to

Keyboard shortcuts

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