AxibugEmuOnline/References/VirtuaNESex_src_191105/NES/Mapper/Mapper242.cpp
2024-08-05 17:58:53 +08:00

17 lines
488 B
C++

//////////////////////////////////////////////////////////////////////////
// Mapper242 Wai Xing Zhan Shi //
//////////////////////////////////////////////////////////////////////////
void Mapper242::Reset()
{
SetPROM_32K_Bank( 0 );
}
void Mapper242::Write( WORD addr, BYTE data )
{
if( addr & 0x01 ) {
SetPROM_32K_Bank( (addr&0xF8)>>3 );
}
if( (addr & 0x03)>>1 ) SetVRAM_Mirror( VRAM_HMIRROR );
else SetVRAM_Mirror( VRAM_VMIRROR );
}