Mapper 143 support
This commit is contained in:
parent
6596fbe288
commit
115ccc0705
4 changed files with 21 additions and 0 deletions
|
@ -456,6 +456,7 @@
|
|||
<ClInclude Include="NtdecTc112.h" />
|
||||
<ClInclude Include="Rambo1.h" />
|
||||
<ClInclude Include="Sachen8259.h" />
|
||||
<ClInclude Include="Sachen_143.h" />
|
||||
<ClInclude Include="SelectControllerMessage.h" />
|
||||
<ClInclude Include="SoundMixer.h" />
|
||||
<ClInclude Include="Namco108.h" />
|
||||
|
|
|
@ -646,6 +646,9 @@
|
|||
<ClInclude Include="Sachen8259.h">
|
||||
<Filter>Nes\Mappers\Sachen</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Sachen_143.h">
|
||||
<Filter>Nes\Mappers\Sachen</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="stdafx.cpp">
|
||||
|
|
|
@ -76,6 +76,7 @@
|
|||
#include "NROM.h"
|
||||
#include "NtdecTc112.h"
|
||||
#include "Rambo1.h"
|
||||
#include "Sachen_143.h"
|
||||
#include "Sachen_145.h"
|
||||
#include "Sachen_147.h"
|
||||
#include "Sachen_148.h"
|
||||
|
@ -199,6 +200,7 @@ BaseMapper* MapperFactory::GetMapperFromID(RomData &romData)
|
|||
case 139: return new Sachen8259(Sachen8259Variant::Sachen8259C);
|
||||
case 140: return new JalecoJf11_14();
|
||||
case 141: return new Sachen8259(Sachen8259Variant::Sachen8259A);
|
||||
case 143: return new Sachen_143();
|
||||
case 144: return new ColorDreams();
|
||||
case 145: return new Sachen_145();
|
||||
case 146: return new Nina03_06(false);
|
||||
|
|
15
Core/Sachen_143.h
Normal file
15
Core/Sachen_143.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
#include "NROM.h"
|
||||
|
||||
class Sachen_143 : public NROM
|
||||
{
|
||||
protected:
|
||||
uint16_t RegisterStartAddress() { return 0x4100; }
|
||||
uint16_t RegisterEndAddress() { return 0x5FFF; }
|
||||
bool AllowRegisterRead() { return true; }
|
||||
|
||||
uint8_t ReadRegister(uint16_t addr)
|
||||
{
|
||||
return (~addr & 0x3F) | 0x40;
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue