diff options
Diffstat (limited to 'ChocolArm64/Decoder/AOpCodeBImmCond.cs')
| -rw-r--r-- | ChocolArm64/Decoder/AOpCodeBImmCond.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ChocolArm64/Decoder/AOpCodeBImmCond.cs b/ChocolArm64/Decoder/AOpCodeBImmCond.cs new file mode 100644 index 00000000..1310feb8 --- /dev/null +++ b/ChocolArm64/Decoder/AOpCodeBImmCond.cs @@ -0,0 +1,25 @@ +using ChocolArm64.Instruction; + +namespace ChocolArm64.Decoder +{ + class AOpCodeBImmCond : AOpCodeBImm, IAOpCodeCond + { + public ACond Cond { get; private set; } + + public AOpCodeBImmCond(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode) + { + int O0 = (OpCode >> 4) & 1; + + if (O0 != 0) + { + Emitter = AInstEmit.Und; + + return; + } + + Cond = (ACond)(OpCode & 0xf); + + Imm = Position + ADecoderHelper.DecodeImmS19_2(OpCode); + } + } +}
\ No newline at end of file |
