- [FIX] Solventats els bugs de la memòria modular amb classes

This commit is contained in:
2024-12-19 20:57:28 +01:00
parent dbd80694aa
commit 68843ab6b3
6 changed files with 31 additions and 23 deletions

View File

@@ -1153,8 +1153,9 @@ namespace z80
const uint8_t opcode = READ_M1();
uint8_t tag = z80mem::get()->getTag(current_opcode_address);
if ( !(tag & MEMTAG_IGNORE) ) tag = tag | MEMTAG_INST;
z80mem::get()->setTag(current_opcode_address, tag | !(tag&MEMTAG_TOUCHED) ? MEMTAG_TREPEAT : MEMTAG_TINST);
if ( !(tag & MEMTAG_IGNORE) )
tag = tag | MEMTAG_INST;
z80mem::get()->setTag(current_opcode_address, tag | (!(tag&MEMTAG_TOUCHED) ? MEMTAG_TREPEAT : MEMTAG_TINST) );
uint16_t tmp;