1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-04-23 01:37:21 +00:00

Merge pull request #1453 from TomHarte/AbsentBits

Correct status unset-bit masks.
This commit is contained in:
Thomas Harte 2025-01-11 22:58:42 -05:00 committed by GitHub
commit 407a6f5e31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public:
};
uint8_t status() const {
return status_ | ((status_ & mask_) ? 0x80 : 0x00) | 0x21;
return status_ | ((status_ & mask_) ? 0x80 : 0x00) | 0x25;
}
uint8_t mask() const {

View File

@ -378,7 +378,7 @@ public:
} break;
case 0xff09: *value = interrupts_.status(); break;
case 0xff0a:
*value = interrupts_.mask() | video_.read<0xff0a>() | 0x60;
*value = interrupts_.mask() | video_.read<0xff0a>() | 0xa0;
break;
case 0xff0b: *value = video_.read<0xff0b>(); break;
case 0xff0c: *value = video_.read<0xff0c>(); break;