Documentation ¶
Index ¶
- type PPU
- func (ppu *PPU) EndMachineCycle()
- func (ppu *PPU) Frame() *image.RGBA
- func (ppu *PPU) ReadBGP() uint8
- func (ppu *PPU) ReadLCDC() uint8
- func (ppu *PPU) ReadLY() uint8
- func (ppu *PPU) ReadLYC() uint8
- func (ppu *PPU) ReadOBP0() uint8
- func (ppu *PPU) ReadOBP1() uint8
- func (ppu *PPU) ReadSCX() uint8
- func (ppu *PPU) ReadSCY() uint8
- func (ppu *PPU) ReadSTAT() uint8
- func (ppu *PPU) ReadVideoRAM(addr uint16) uint8
- func (ppu *PPU) ReadWX() uint8
- func (ppu *PPU) ReadWY() uint8
- func (ppu *PPU) Screenshot(filename string)
- func (ppu *PPU) WriteBGP(value uint8)
- func (ppu *PPU) WriteLCDC(value uint8)
- func (ppu *PPU) WriteLY(value uint8)
- func (ppu *PPU) WriteLYC(value uint8)
- func (ppu *PPU) WriteOBP0(value uint8)
- func (ppu *PPU) WriteOBP1(value uint8)
- func (ppu *PPU) WriteSCX(value uint8)
- func (ppu *PPU) WriteSCY(value uint8)
- func (ppu *PPU) WriteSTAT(value uint8)
- func (ppu *PPU) WriteVideoRAM(addr uint16, value uint8)
- func (ppu *PPU) WriteWX(value uint8)
- func (ppu *PPU) WriteWY(value uint8)
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) ReadVideoRAM ¶
func (*PPU) Screenshot ¶
Screenshot writes a screenshot to file
func (*PPU) WriteVideoRAM ¶
Click to show internal directories.
Click to hide internal directories.