mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
21 lines
No EOL
433 B
C++
21 lines
No EOL
433 B
C++
#pragma once
|
|
#include "pch.h"
|
|
#include "NES/Mappers/Txc/Txc22211A.h"
|
|
|
|
class Txc22211C : public Txc22211A
|
|
{
|
|
protected:
|
|
void UpdateState() override
|
|
{
|
|
SelectPrgPage(0, 0);
|
|
if(_chrRomSize > 0x2000) {
|
|
SelectChrPage(0, (_txc.GetOutput() & 0x01) | (_txc.GetY() ? 0x02 : 0) | ((_txc.GetOutput() & 0x02) << 1));
|
|
} else {
|
|
if(_txc.GetY()){
|
|
SelectChrPage(0, 0);
|
|
} else {
|
|
RemovePpuMemoryMapping(0, 0x1FFF);
|
|
}
|
|
}
|
|
}
|
|
}; |