lock MMR2 when upper 3 bits of MMR0 are set (any of them)
This commit is contained in:
parent
253d8437eb
commit
5bad90a820
1 changed files with 2 additions and 1 deletions
3
bus.cpp
3
bus.cpp
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue