Backport FME7 - Fixed (presumably) missing mask on $8000 writes, fixed behavior for $C000 when value is > 15

This commit is contained in:
vailkyte 2023-05-18 08:03:24 -05:00 committed by GitHub
parent fe9d2d3302
commit 0908074346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -75,7 +75,7 @@ protected:
{
switch(addr & 0xE000) {
case 0x8000:
_command = value;
_command = value & 0x0F;
break;
case 0xA000:
switch(_command) {