cpu/thumb: fix pc relative load
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
@@ -189,6 +189,7 @@ Instruction::exec(Cpu& cpu) {
|
||||
},
|
||||
[&cpu](PcRelativeLoad& data) {
|
||||
uint32_t pc = cpu.pc;
|
||||
rst_bit(pc, 0);
|
||||
rst_bit(pc, 1);
|
||||
|
||||
cpu.gpr[data.rd] = cpu.bus->read_word(pc + data.word);
|
||||
|
Reference in New Issue
Block a user