mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-26 15:49:57 -06:00
aloha
This commit is contained in:
25
Ryujinx/Cpu/Decoder/AOpCodeBImmCond.cs
Normal file
25
Ryujinx/Cpu/Decoder/AOpCodeBImmCond.cs
Normal file
@ -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)
|
||||
{
|
||||
int O0 = (OpCode >> 4) & 1;
|
||||
|
||||
if (O0 != 0)
|
||||
{
|
||||
Emitter = AInstEmit.Und;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Cond = (ACond)(OpCode & 0xf);
|
||||
|
||||
Imm = Position + ADecoderHelper.DecodeImmS19_2(OpCode);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user