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,7 +361,8 @@ void bus::clearMMR0Bit(const int bit)
void bus::setMMR2(const uint16_t value) void bus::setMMR2(const uint16_t value)
{ {
MMR2 = value; if ((MMR0 & 0xe000) == 0)
MMR2 = value;
} }
void bus::check_odd_addressing(const uint16_t a, const int run_mode, const d_i_space_t space, const bool is_write) void bus::check_odd_addressing(const uint16_t a, const int run_mode, const d_i_space_t space, const bool is_write)