mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-03-22 13:41:02 +01:00
Implement Thumb ADR instruction
This commit is contained in:
@@ -244,6 +244,11 @@ public:
|
||||
return Common::StringFromFormat("ldr %s, [%s, #%u]", RegStr(t), RegStr(n), imm32);
|
||||
}
|
||||
|
||||
std::string thumb16_ADR(Reg d, Imm8 imm8) {
|
||||
u32 imm32 = imm8 << 2;
|
||||
return Common::StringFromFormat("adr %s, +#%u", RegStr(d), imm32);
|
||||
}
|
||||
|
||||
std::string thumb16_SXTH(Reg m, Reg d) {
|
||||
return Common::StringFromFormat("sxth %s, %s", RegStr(d), RegStr(m));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user