diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-05-26 17:49:21 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-05-26 17:50:47 -0300 |
| commit | 9670c096e410add36314a247b77334c0c1d61256 (patch) | |
| tree | dc66ff6966b5544ee78e45b571c187225f96c35d /ChocolArm64/Translation/AILOpCodeConst.cs | |
| parent | cb1cf489f96b09872f8a9db41226c6f5d1654575 (diff) | |
Initial work to support AArch32 with a interpreter, plus nvmm stubs (not used for now)
Diffstat (limited to 'ChocolArm64/Translation/AILOpCodeConst.cs')
| -rw-r--r-- | ChocolArm64/Translation/AILOpCodeConst.cs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/ChocolArm64/Translation/AILOpCodeConst.cs b/ChocolArm64/Translation/AILOpCodeConst.cs index 80150ec5..fee86407 100644 --- a/ChocolArm64/Translation/AILOpCodeConst.cs +++ b/ChocolArm64/Translation/AILOpCodeConst.cs @@ -55,24 +55,8 @@ namespace ChocolArm64.Translation { switch (Type) { - case ConstType.Int32: Context.Generator.EmitLdc_I4(Value.I4); break; - - case ConstType.Int64: - { - if (Value.I8 >= int.MinValue && - Value.I8 <= int.MaxValue) - { - Context.Generator.EmitLdc_I4(Value.I4); - - Context.Generator.Emit(OpCodes.Conv_I8); - } - else - { - Context.Generator.Emit(OpCodes.Ldc_I8, Value.I8); - } - break; - } - + case ConstType.Int32: Context.Generator.EmitLdc_I4(Value.I4); break; + case ConstType.Int64: Context.Generator.Emit(OpCodes.Ldc_I8, Value.I8); break; case ConstType.Single: Context.Generator.Emit(OpCodes.Ldc_R4, Value.R4); break; case ConstType.Double: Context.Generator.Emit(OpCodes.Ldc_R8, Value.R8); break; } |
