From eba682b767a60db51ff624ae48a3ca0124634705 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 25 Aug 2022 06:59:34 -0300 Subject: Implement some 32-bit Thumb instructions (#3614) * Implement some 32-bit Thumb instructions * Optimize OpCode32MemMult using PopCount --- ARMeilleure/Instructions/InstEmitMemoryHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ARMeilleure/Instructions/InstEmitMemoryHelper.cs') diff --git a/ARMeilleure/Instructions/InstEmitMemoryHelper.cs b/ARMeilleure/Instructions/InstEmitMemoryHelper.cs index ecb644a2..2877d53e 100644 --- a/ARMeilleure/Instructions/InstEmitMemoryHelper.cs +++ b/ARMeilleure/Instructions/InstEmitMemoryHelper.cs @@ -547,7 +547,7 @@ namespace ARMeilleure.Instructions { switch (context.CurrOp) { - case OpCode32MemRsImm op: return GetMShiftedByImmediate(context, op, setCarry); + case IOpCode32MemRsImm op: return GetMShiftedByImmediate(context, op, setCarry); case IOpCode32MemReg op: return GetIntA32(context, op.Rm); @@ -564,7 +564,7 @@ namespace ARMeilleure.Instructions return new InvalidOperationException($"Invalid OpCode type \"{opCode?.GetType().Name ?? "null"}\"."); } - public static Operand GetMShiftedByImmediate(ArmEmitterContext context, OpCode32MemRsImm op, bool setCarry) + public static Operand GetMShiftedByImmediate(ArmEmitterContext context, IOpCode32MemRsImm op, bool setCarry) { Operand m = GetIntA32(context, op.Rm); -- cgit v1.2.3