cpu/arm: fix single data transfer

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-06-11 23:28:27 +05:30
parent 1a2e101ebd
commit 441665abad
2 changed files with 2 additions and 6 deletions

View File

@@ -171,10 +171,6 @@ Instruction::exec(Cpu& cpu) {
cpu.cpsr.set_c(carry);
}
// PC is always two instructions ahead
if (data.rn == cpu.PC_INDEX)
address -= 2 * INSTRUCTION_SIZE;
if (data.pre)
address += (data.up ? offset : -offset);