- [NEW] Ara es veuen també els registres I i R en el debugger

- [FIX] Arreglada la gestió de les interrupcions en mode 2
This commit is contained in:
2024-12-06 09:38:53 +01:00
parent c0f9fa9933
commit 80a8d3b0cd
3 changed files with 16 additions and 2 deletions

View File

@@ -662,7 +662,8 @@ namespace z80
if (im==1) {
rPC = 0x38;
} else if (im==2) {
rPC = (rI<<8) | 0xFF;
const uint8_t address = (rI<<8) | 0xFE;
rPC = READ_MEM_16(address);
}
}
@@ -2729,6 +2730,9 @@ namespace z80
uint16_t getPC() { return rPC; }
uint8_t getI() { return rI; }
uint8_t getR() { return rR; }
void setPC(const uint16_t addr) { rPC = addr; }
uint8_t getMemTag(const uint16_t addr) { return memtag[addr]; };