ppu

package
v0.0.0-...-e0ac686 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PPU

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

func New

func New(interrupts *interrupts.Interrupts, oam *oam.OAM, debug bool) *PPU

func (*PPU) EndMachineCycle

func (ppu *PPU) EndMachineCycle()

EndMachineCycle updates the LCD driver after each machine cycle i.e. 4 clock cycles

func (*PPU) Frame

func (ppu *PPU) Frame() *image.RGBA

Frame returns the most recently rendered frame

func (*PPU) ReadBGP

func (ppu *PPU) ReadBGP() uint8

ReadBGP handles reads from register BGP

func (*PPU) ReadLCDC

func (ppu *PPU) ReadLCDC() uint8

ReadLCDC handles reads from register LCDC

func (*PPU) ReadLY

func (ppu *PPU) ReadLY() uint8

ReadLY handles reads from register LY

func (*PPU) ReadLYC

func (ppu *PPU) ReadLYC() uint8

ReadLYC handles reads from register LYC

func (*PPU) ReadOBP0

func (ppu *PPU) ReadOBP0() uint8

ReadOBP0 handles reads from register OBP0

func (*PPU) ReadOBP1

func (ppu *PPU) ReadOBP1() uint8

ReadOBP1 handles reads from register OBP1

func (*PPU) ReadSCX

func (ppu *PPU) ReadSCX() uint8

ReadSCX handles reads from register SCX

func (*PPU) ReadSCY

func (ppu *PPU) ReadSCY() uint8

ReadSCY handles reads from register SCY

func (*PPU) ReadSTAT

func (ppu *PPU) ReadSTAT() uint8

ReadSTAT handles reads from register STAT

func (*PPU) ReadVideoRAM

func (ppu *PPU) ReadVideoRAM(addr uint16) uint8

func (*PPU) ReadWX

func (ppu *PPU) ReadWX() uint8

ReadWX handles reads from register WX

func (*PPU) ReadWY

func (ppu *PPU) ReadWY() uint8

ReadWY handles reads from register WY

func (*PPU) Screenshot

func (ppu *PPU) Screenshot(filename string)

Screenshot writes a screenshot to file

func (*PPU) WriteBGP

func (ppu *PPU) WriteBGP(value uint8)

WriteBGP handles writes to register BGP

func (*PPU) WriteLCDC

func (ppu *PPU) WriteLCDC(value uint8)

WriteLCDC handles writes to register LCDC

func (*PPU) WriteLY

func (ppu *PPU) WriteLY(value uint8)

WriteLY handles writes to register LY

func (*PPU) WriteLYC

func (ppu *PPU) WriteLYC(value uint8)

WriteLYC handles writes to register LYC

func (*PPU) WriteOBP0

func (ppu *PPU) WriteOBP0(value uint8)

WriteOBP0 handles writes to register OBP0

func (*PPU) WriteOBP1

func (ppu *PPU) WriteOBP1(value uint8)

WriteOBP1 handles writes to register OBP1

func (*PPU) WriteSCX

func (ppu *PPU) WriteSCX(value uint8)

WriteSCX handles writes to register SCX

func (*PPU) WriteSCY

func (ppu *PPU) WriteSCY(value uint8)

WriteSCY handles writes to register SCY

func (*PPU) WriteSTAT

func (ppu *PPU) WriteSTAT(value uint8)

WriteSTAT handles writes to register STAT

func (*PPU) WriteVideoRAM

func (ppu *PPU) WriteVideoRAM(addr uint16, value uint8)

func (*PPU) WriteWX

func (ppu *PPU) WriteWX(value uint8)

WriteWX handles writes to register WX

func (*PPU) WriteWY

func (ppu *PPU) WriteWY(value uint8)

WriteWY handles writes to register WY

Jump to

Keyboard shortcuts

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