mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-27 08:29:23 +00:00
25 lines
565 B
C#
25 lines
565 B
C#
|
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)
|
||
|
{
|
||
|
int O0 = (OpCode >> 4) & 1;
|
||
|
|
||
|
if (O0 != 0)
|
||
|
{
|
||
|
Emitter = AInstEmit.Und;
|
||
|
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
Cond = (ACond)(OpCode & 0xf);
|
||
|
|
||
|
Imm = Position + ADecoderHelper.DecodeImmS19_2(OpCode);
|
||
|
}
|
||
|
}
|
||
|
}
|