mirror of
https://github.com/rodamaral/lsnes.git
synced 2025-04-02 10:42:15 -04:00
14 lines
295 B
C++
Executable file
14 lines
295 B
C++
Executable file
#ifdef PPU_CPP
|
|
|
|
bool PPU::display_disable() const { return r[0x00] & 0x80; }
|
|
unsigned PPU::display_brightness() const { return r[0x00] & 0x0f; }
|
|
|
|
uint8 PPU::mmio_read(unsigned addr) {
|
|
return cpu.regs.mdr;
|
|
}
|
|
|
|
void PPU::mmio_write(unsigned addr, uint8 data) {
|
|
r[addr & 0x3f] = data;
|
|
}
|
|
|
|
#endif
|