2016-07-17 12:42:03 -04:00
|
|
|
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "Txc22211A.h"
|
|
|
|
|
|
|
|
class Txc22211C : public Txc22211A
|
|
|
|
{
|
|
|
|
protected:
|
2019-12-20 22:59:09 -05:00
|
|
|
void UpdateState() override
|
2016-07-17 12:42:03 -04:00
|
|
|
{
|
2019-12-20 22:59:09 -05:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
2016-07-17 12:42:03 -04:00
|
|
|
}
|
|
|
|
};
|