GameBoy Emulator 1
Game Boy emulator core and tooling
Loading...
Searching...
No Matches
PPU Class Reference

Classes

struct  RomInfo
struct  OpcodeTrace

Public Member Functions

 PPU (InterruptController &ic)
void set_mmu (MMU *m)
void set_cpu (ProcessingUnit *c)
void set_rom_info (const RomInfo &info)
void step (int cycles)
u8 read (u16 address) const
void write (u16 address, u8 value)
const u32 * get_framebuffer () const
bool is_frame_ready () const
void clear_frame_ready ()
void init_window (bool debug, const std::string &rom_title, bool fullscreen=false)
bool isOpen () const
bool isPaused () const
void handleEvents (JoypadState &joypad)
void update (float dtSeconds, u64 cyclesExecuted)
void render ()
void recordOpcode (u16 pc, u8 opcode)
void checkBreakpoint (u16 pc)
bool isStepRequested () const
void clearStepRequest ()
bool isTurbo () const
void setTurbo (bool val)
int getActiveSlot () const
void setActiveSlot (int slot)
void reset ()
bool isResetRequested () const
void clearResetRequest ()

Detailed Description

Definition at line 16 of file ppu.hpp.

Constructor & Destructor Documentation

◆ PPU() [1/2]

PPU::PPU ( )

Definition at line 49 of file ppu.cpp.

◆ PPU() [2/2]

PPU::PPU ( InterruptController & ic)
explicit

Definition at line 62 of file ppu.cpp.

Member Function Documentation

◆ checkBreakpoint()

void PPU::checkBreakpoint ( u16 pc)

Definition at line 544 of file ppu.cpp.

◆ clear_frame_ready()

void PPU::clear_frame_ready ( )
inline

Definition at line 44 of file ppu.hpp.

◆ clearResetRequest()

void PPU::clearResetRequest ( )
inline

Definition at line 66 of file ppu.hpp.

◆ clearStepRequest()

void PPU::clearStepRequest ( )
inline

Definition at line 58 of file ppu.hpp.

◆ get_framebuffer()

const u32 * PPU::get_framebuffer ( ) const
inline

Definition at line 42 of file ppu.hpp.

◆ getActiveSlot()

int PPU::getActiveSlot ( ) const
inline

Definition at line 62 of file ppu.hpp.

◆ handleEvents()

void PPU::handleEvents ( JoypadState & joypad)

Definition at line 346 of file ppu.cpp.

◆ init_window()

void PPU::init_window ( bool debug,
const std::string & rom_title,
bool fullscreen = false )

Definition at line 274 of file ppu.cpp.

◆ is_frame_ready()

bool PPU::is_frame_ready ( ) const
inline

Definition at line 43 of file ppu.hpp.

◆ isOpen()

bool PPU::isOpen ( ) const

Definition at line 342 of file ppu.cpp.

◆ isPaused()

bool PPU::isPaused ( ) const
inline

Definition at line 49 of file ppu.hpp.

◆ isResetRequested()

bool PPU::isResetRequested ( ) const
inline

Definition at line 65 of file ppu.hpp.

◆ isStepRequested()

bool PPU::isStepRequested ( ) const
inline

Definition at line 57 of file ppu.hpp.

◆ isTurbo()

bool PPU::isTurbo ( ) const
inline

Definition at line 60 of file ppu.hpp.

◆ read()

u8 PPU::read ( u16 address) const

Definition at line 128 of file ppu.cpp.

◆ recordOpcode()

void PPU::recordOpcode ( u16 pc,
u8 opcode )

Definition at line 537 of file ppu.cpp.

◆ render()

void PPU::render ( )

Definition at line 516 of file ppu.cpp.

◆ reset()

void PPU::reset ( )

Definition at line 555 of file ppu.cpp.

◆ set_cpu()

void PPU::set_cpu ( ProcessingUnit * c)
inline

Definition at line 36 of file ppu.hpp.

◆ set_mmu()

void PPU::set_mmu ( MMU * m)
inline

Definition at line 35 of file ppu.hpp.

◆ set_rom_info()

void PPU::set_rom_info ( const RomInfo & info)
inline

Definition at line 37 of file ppu.hpp.

◆ setActiveSlot()

void PPU::setActiveSlot ( int slot)
inline

Definition at line 63 of file ppu.hpp.

◆ setTurbo()

void PPU::setTurbo ( bool val)
inline

Definition at line 61 of file ppu.hpp.

◆ step()

void PPU::step ( int cycles)

Definition at line 74 of file ppu.cpp.

◆ update()

void PPU::update ( float dtSeconds,
u64 cyclesExecuted )

Definition at line 495 of file ppu.cpp.

◆ write()

void PPU::write ( u16 address,
u8 value )

Definition at line 148 of file ppu.cpp.


The documentation for this class was generated from the following files: