mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 20:24:36 +01:00
decoder: Generify the matcher interface (#33)
Gets rid of a bit of duplication while remaining compatible with the current interfaces in place.
This commit is contained in:
parent
943487ecee
commit
f75acd6cfb
11 changed files with 116 additions and 172 deletions
|
|
@ -21,6 +21,8 @@ namespace Arm {
|
|||
|
||||
class DisassemblerVisitor {
|
||||
public:
|
||||
using instruction_return_type = std::string;
|
||||
|
||||
u32 rotr(u32 x, int shift) {
|
||||
shift &= 31;
|
||||
if (!shift) return x;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ namespace Arm {
|
|||
|
||||
class DisassemblerVisitor {
|
||||
public:
|
||||
using instruction_return_type = std::string;
|
||||
|
||||
std::string thumb16_LSL_imm(Imm5 imm5, Reg m, Reg d) {
|
||||
return fmt::format("lsls {}, {}, #{}", d, m, imm5);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue