AxibugEmuOnline/virtuanessrc097-master/NES/Mapper/Mapper140.cpp

18 lines
934 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//////////////////////////////////////////////////////////////////////////
// Mapper140 //
//////////////////////////////////////////////////////////////////////////
void Mapper140::Reset()
{
SetPROM_32K_Bank( 0 );
if( VROM_1K_SIZE ) {
SetVROM_8K_Bank( 0 );
}
}
void Mapper140::WriteLow( WORD addr, BYTE data )
{
SetPROM_32K_Bank( (data&0xF0)>>4 );
SetVROM_8K_Bank( data&0x0F );
}