Fix broken tests due to recent arm7tdmi changes

Former-commit-id: e1a5ec4ce3cb4c61bf6f511babfa8da8efd7321f
This commit is contained in:
Michel Heily 2020-02-14 13:02:56 +02:00
parent 84004ddb5c
commit 69aadb9d92

View file

@ -228,7 +228,7 @@ mod tests {
gba.frame();
}
let insn = gba.sysbus.read_32(gba.cpu.pc);
let insn = gba.sysbus.read_32(gba.cpu.pc - 8);
assert_eq!(insn, 0xeafffffe); // loop
assert_eq!(0, gba.cpu.gpr[12]);
}
@ -241,7 +241,7 @@ mod tests {
gba.frame();
}
let insn = gba.sysbus.read_16(gba.cpu.pc);
let insn = gba.sysbus.read_16(gba.cpu.pc - 4);
assert_eq!(insn, 0xe7fe); // loop
assert_eq!(0, gba.cpu.gpr[7]);
}