mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
19 lines
No EOL
425 B
C++
19 lines
No EOL
425 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "NES/Mappers/Namco/Namco108.h"
|
|
|
|
class Namco108_95 : public Namco108
|
|
{
|
|
protected:
|
|
void WriteRegister(uint16_t addr, uint8_t value) override
|
|
{
|
|
Namco108::WriteRegister(addr, value);
|
|
|
|
if(addr & 0x01) {
|
|
uint8_t nameTable1 = (_registers[0] >> 5) & 0x01;
|
|
uint8_t nameTable2 = (_registers[1] >> 5) & 0x01;
|
|
|
|
SetNametables(nameTable1, nameTable1, nameTable2, nameTable2);
|
|
}
|
|
}
|
|
}; |