lock MMR2 when upper 3 bits of MMR0 are set (any of them)

This commit is contained in:
folkert van heusden 2023-03-21 19:40:32 +01:00
parent 253d8437eb
commit 5bad90a820
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -361,6 +361,7 @@ void bus::clearMMR0Bit(const int bit)
void bus::setMMR2(const uint16_t value)
{
if ((MMR0 & 0xe000) == 0)
MMR2 = value;
}