mirror of
https://github.com/azahar-emu/dynarmic.git
synced 2026-04-13 00:21:34 +02:00
A32: Implement ARM-mode SDIV/UDIV
Now that we have Unicorn in place, we can freely implement instructions introduced in newer versions of the ARM architecture.
This commit is contained in:
@@ -634,6 +634,14 @@ public:
|
||||
return fmt::format("usat16{} {}, #{}, {}", CondToString(cond), d, sat_imm, n);
|
||||
}
|
||||
|
||||
// Divide instructions
|
||||
std::string arm_SDIV(Cond cond, Reg d, Reg m, Reg n) {
|
||||
return fmt::format("sdiv{} {}, {}, {}", CondToString(cond), d, n, m);
|
||||
}
|
||||
std::string arm_UDIV(Cond cond, Reg d, Reg m, Reg n) {
|
||||
return fmt::format("udiv{} {}, {}, {}", CondToString(cond), d, n, m);
|
||||
}
|
||||
|
||||
// Multiply (Normal) instructions
|
||||
std::string arm_MLA(Cond cond, bool S, Reg d, Reg a, Reg m, Reg n) {
|
||||
return fmt::format("mla{}{} {}, {}, {}, {}", S ? "s" : "", CondToString(cond), d, n, m, a);
|
||||
|
||||
Reference in New Issue
Block a user