2018-02-05 00:08:20 +01:00
|
|
|
using ChocolArm64.Instruction;
|
|
|
|
|
|
|
|
namespace ChocolArm64.Decoder
|
|
|
|
{
|
|
|
|
class AOpCodeBImmCond : AOpCodeBImm, IAOpCodeCond
|
|
|
|
{
|
|
|
|
public ACond Cond { get; private set; }
|
|
|
|
|
2018-02-10 18:20:46 +01:00
|
|
|
public AOpCodeBImmCond(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode)
|
2018-02-05 00:08:20 +01:00
|
|
|
{
|
|
|
|
int O0 = (OpCode >> 4) & 1;
|
|
|
|
|
|
|
|
if (O0 != 0)
|
|
|
|
{
|
|
|
|
Emitter = AInstEmit.Und;
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Cond = (ACond)(OpCode & 0xf);
|
|
|
|
|
|
|
|
Imm = Position + ADecoderHelper.DecodeImmS19_2(OpCode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|