aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-08-10 01:14:27 -0300
committerGitHub <noreply@github.com>2018-08-10 01:14:27 -0300
commit267af1f0f775d11b36dab0d1276188f907604584 (patch)
tree30bf98ab3d2f0643eb3d0fafd33862c9ef058b11
parent25dd5f4238d898120f2f65c4d5d5b9c192ce1e10 (diff)
Fix load/store exclusive/atomic pairwise instructions (#337)
-rw-r--r--ChocolArm64/Instruction/AInstEmitMemoryEx.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ChocolArm64/Instruction/AInstEmitMemoryEx.cs b/ChocolArm64/Instruction/AInstEmitMemoryEx.cs
index c8cf9110..e59cadd4 100644
--- a/ChocolArm64/Instruction/AInstEmitMemoryEx.cs
+++ b/ChocolArm64/Instruction/AInstEmitMemoryEx.cs
@@ -75,7 +75,7 @@ namespace ChocolArm64.Instruction
{
Context.EmitLdarg(ATranslatedSub.MemoryArgIdx);
Context.EmitLdtmp();
- Context.EmitLdc_I(8 << Op.Size);
+ Context.EmitLdc_I8(1 << Op.Size);
Context.Emit(OpCodes.Add);
@@ -145,7 +145,7 @@ namespace ChocolArm64.Instruction
{
Context.EmitLdarg(ATranslatedSub.MemoryArgIdx);
Context.EmitLdint(Op.Rn);
- Context.EmitLdc_I(8 << Op.Size);
+ Context.EmitLdc_I8(1 << Op.Size);
Context.Emit(OpCodes.Add);