A7800: expand cart size for some demos
This commit is contained in:
parent
d8ec5df92d
commit
572c7f34c8
|
@ -194,6 +194,8 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
{
|
||||
s_mapper = "0";
|
||||
}
|
||||
|
||||
if (cart_2.Bit(0)) { is_pokey = true; }
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -212,9 +214,10 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
}
|
||||
}
|
||||
|
||||
Reset_Mapper(s_mapper);
|
||||
|
||||
_rom = rom;
|
||||
|
||||
Reset_Mapper(s_mapper);
|
||||
|
||||
_hsbios = highscoreBios;
|
||||
_bios = _isPAL ? palBios : ntscBios;
|
||||
|
||||
|
@ -323,6 +326,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
}
|
||||
|
||||
mapper.Core = this;
|
||||
mapper.mask = _rom.Length / 0x4000 - 1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -6,6 +6,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
public class MapperBase
|
||||
{
|
||||
public A7800Hawk Core { get; set; }
|
||||
public int mask;
|
||||
|
||||
public virtual byte ReadMemory(ushort addr)
|
||||
{
|
||||
|
|
|
@ -139,7 +139,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
|
|||
// cartridge and other OPSYS
|
||||
if (addr>=0x8000)
|
||||
{
|
||||
bank = (byte)(value & (Core.small_flag ? 0x3 : 0x7));
|
||||
bank = (byte)(value & (Core.small_flag ? 0x3 : mask));
|
||||
}
|
||||
else if (Core.is_pokey)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue