Fixed MOVEM

- register list is fetched before EA resolution
- pre/post EA mode MUST use ar indirect register micro-routine
This commit is contained in:
Rodolphe de Saint Léger 2025-05-19 11:37:54 +02:00
parent cee4710070
commit 4aad8cbc96
8 changed files with 863 additions and 983 deletions

View file

@ -44,7 +44,7 @@ public class CoreTest extends Core {
for (int i = 0; i < numTests; i++) {
boolean skip = checkSkip(i, skips);
if ((i == 383) && "Bcc".equals(name)) {
if ((i == 40) && "MOVEM.w".equals(name)) {
toString();
}
executeBinTest(buffer, skip);
@ -194,7 +194,7 @@ public class CoreTest extends Core {
core.write16(value.addr, value.data);
}
core.mpc = 11;
core.mpc = execute_trap;
core.sswi &= ~(SR_T1 | SR_T0);
}

View file

@ -179,8 +179,8 @@ public class InstructionTests extends TestCase {
test.executeBinTest("MOVEA.w");
test.executeBinTest("MOVEA.l");
// test.executeBinTest("MOVEM.w");
// test.executeBinTest("MOVEM.l");
test.executeBinTest("MOVEM.w");
test.executeBinTest("MOVEM.l");
test.executeBinTest("MOVEtoCCR");
test.executeBinTest("MOVEtoUSP");