2016-01-01 12:34:16 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "Namco108.h"
|
|
|
|
|
|
|
|
class Namco108_95 : public Namco108
|
|
|
|
{
|
|
|
|
protected:
|
2016-12-17 23:14:47 -05:00
|
|
|
virtual void WriteRegister(uint16_t addr, uint8_t value) override
|
2016-01-01 12:34:16 -05:00
|
|
|
{
|
|
|
|
Namco108::WriteRegister(addr, value);
|
|
|
|
|
|
|
|
if(addr & 0x01) {
|
|
|
|
uint8_t nameTable1 = (_registers[0] >> 5) & 0x01;
|
|
|
|
uint8_t nameTable2 = (_registers[1] >> 5) & 0x01;
|
|
|
|
|
2016-01-24 11:18:50 -05:00
|
|
|
SetNametables(nameTable1, nameTable1, nameTable2, nameTable2);
|
2016-01-01 12:34:16 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|