mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-27 19:10:21 +00:00
20 lines
485 B
C
20 lines
485 B
C
|
#pragma once
|
||
|
|
||
|
#include "stdafx.h"
|
||
|
#include "Namco108.h"
|
||
|
|
||
|
class Namco108_95 : public Namco108
|
||
|
{
|
||
|
protected:
|
||
|
virtual void WriteRegister(uint16_t addr, uint8_t value)
|
||
|
{
|
||
|
Namco108::WriteRegister(addr, value);
|
||
|
|
||
|
if(addr & 0x01) {
|
||
|
uint8_t nameTable1 = (_registers[0] >> 5) & 0x01;
|
||
|
uint8_t nameTable2 = (_registers[1] >> 5) & 0x01;
|
||
|
|
||
|
SetMirroringType(_nesNametableRam[nameTable1], _nesNametableRam[nameTable1], _nesNametableRam[nameTable2], _nesNametableRam[nameTable2]);
|
||
|
}
|
||
|
}
|
||
|
};
|