mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 09:09:45 +00:00
Backport FME7 - Fixed (presumably) missing mask on $8000 writes, fixed behavior for $C000 when value is > 15
This commit is contained in:
parent
fe9d2d3302
commit
0908074346
@ -120,11 +120,13 @@ public:
|
||||
{
|
||||
switch(addr & 0xE000) {
|
||||
case 0xC000:
|
||||
_currentRegister = value & 0x0F;
|
||||
_currentRegister = value;
|
||||
break;
|
||||
|
||||
case 0xE000:
|
||||
_registers[_currentRegister] = value;
|
||||
if(_currentRegister <= 0x0F) {
|
||||
_registers[_currentRegister] = value;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ protected:
|
||||
{
|
||||
switch(addr & 0xE000) {
|
||||
case 0x8000:
|
||||
_command = value;
|
||||
_command = value & 0x0F;
|
||||
break;
|
||||
case 0xA000:
|
||||
switch(_command) {
|
||||
|
Loading…
Reference in New Issue
Block a user