- [NEW] IM2 teòricament funcionant

This commit is contained in:
2024-04-22 14:46:47 +02:00
parent 9831d3e8bc
commit 0bd7c841d9

View File

@@ -643,7 +643,11 @@ namespace z80
if (!iff1) return;
exit_from_halt = true;
PUSH(rPC);
rPC = 0x38;
if (im==1) {
rPC = 0x38;
} else if (im==2) {
rPC = (rI<<8) | 0xFF;
}
}
void RST(uint8_t vec)