debug code removal
This commit is contained in:
parent
48e88b49d9
commit
183330d6c3
1 changed files with 0 additions and 13 deletions
13
mmu.cpp
13
mmu.cpp
|
@ -53,8 +53,6 @@ void mmu::setMMR0(uint16_t value)
|
|||
value &= 254; // bits 7...1 are protected
|
||||
}
|
||||
|
||||
// TODO if bit 15/14/13 are set (either of them), then do not modify bit 1...7
|
||||
|
||||
MMR0 = value;
|
||||
}
|
||||
|
||||
|
@ -103,17 +101,6 @@ void mmu::addToMMR1(const int8_t delta, const uint8_t reg)
|
|||
|
||||
assert((getMMR0() & 0160000) == 0); // MMR1 should not be locked
|
||||
|
||||
#if defined(ESP32)
|
||||
// if (MMR1 > 255)
|
||||
// esp_backtrace_print(32);
|
||||
#else
|
||||
if (MMR1 > 255) {
|
||||
extern FILE *lfh;
|
||||
fflush(lfh);
|
||||
}
|
||||
assert(MMR1 < 256);
|
||||
#endif
|
||||
|
||||
MMR1 <<= 8;
|
||||
|
||||
MMR1 |= (delta & 31) << 3;
|
||||
|
|
Loading…
Add table
Reference in a new issue