diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-06 17:22:26 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-06 17:22:26 -0300 |
| commit | 980691f36bd7f18b98b636a2ad389c943571877c (patch) | |
| tree | b8cbf5a0937398788756281e7f62b0be4f6e77ef /ChocolArm64/Decoder/AOpCodeBImmCmp.cs | |
| parent | 702daf2ff473acafc56a7f872a9c74db73e19a58 (diff) | |
[CPU] Fix CBZ/CBNZ with 32 bits operands
Diffstat (limited to 'ChocolArm64/Decoder/AOpCodeBImmCmp.cs')
| -rw-r--r-- | ChocolArm64/Decoder/AOpCodeBImmCmp.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ChocolArm64/Decoder/AOpCodeBImmCmp.cs b/ChocolArm64/Decoder/AOpCodeBImmCmp.cs index 1b6185da..0f16b73e 100644 --- a/ChocolArm64/Decoder/AOpCodeBImmCmp.cs +++ b/ChocolArm64/Decoder/AOpCodeBImmCmp.cs @@ -1,4 +1,5 @@ using ChocolArm64.Instruction; +using ChocolArm64.State; namespace ChocolArm64.Decoder { @@ -11,6 +12,10 @@ namespace ChocolArm64.Decoder Rt = OpCode & 0x1f; Imm = Position + ADecoderHelper.DecodeImmS19_2(OpCode); + + RegisterSize = (OpCode >> 31) != 0 + ? ARegisterSize.Int64 + : ARegisterSize.Int32; } } }
\ No newline at end of file |
