diff options
| author | Ficture Seven <FICTURE7@gmail.com> | 2020-05-14 08:50:35 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-14 14:50:35 +1000 |
| commit | 430a48338b5a0531ed2e675d03f30f0409cf6588 (patch) | |
| tree | b636ae9527bc3c19ccf308c24f998b39d2143d53 | |
| parent | 96c7988671177eb565728d31a66a232b1e300c9f (diff) | |
Fix RET Xn translation (#1242)
| -rw-r--r-- | ARMeilleure/Instructions/InstEmitFlow.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ARMeilleure/Instructions/InstEmitFlow.cs b/ARMeilleure/Instructions/InstEmitFlow.cs index bac9ec58..6f2a346e 100644 --- a/ARMeilleure/Instructions/InstEmitFlow.cs +++ b/ARMeilleure/Instructions/InstEmitFlow.cs @@ -71,7 +71,9 @@ namespace ARMeilleure.Instructions public static void Ret(ArmEmitterContext context) { - context.Return(GetIntOrZR(context, RegisterAlias.Lr)); + OpCodeBReg op = (OpCodeBReg)context.CurrOp; + + context.Return(GetIntOrZR(context, op.Rn)); } public static void Tbnz(ArmEmitterContext context) => EmitTb(context, onNotZero: true); |
