diff options
Diffstat (limited to 'ChocolArm64/Decoders32')
| -rw-r--r-- | ChocolArm64/Decoders32/A32OpCode.cs | 15 | ||||
| -rw-r--r-- | ChocolArm64/Decoders32/A32OpCodeBImmAl.cs | 16 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ChocolArm64/Decoders32/A32OpCode.cs b/ChocolArm64/Decoders32/A32OpCode.cs new file mode 100644 index 00000000..f0177a43 --- /dev/null +++ b/ChocolArm64/Decoders32/A32OpCode.cs @@ -0,0 +1,15 @@ +using ChocolArm64.Decoders; +using ChocolArm64.Instructions; + +namespace ChocolArm64.Decoders32 +{ + class A32OpCode : OpCode64 + { + public Cond Cond { get; private set; } + + public A32OpCode(Inst inst, long position, int opCode) : base(inst, position, opCode) + { + Cond = (Cond)((uint)opCode >> 28); + } + } +}
\ No newline at end of file diff --git a/ChocolArm64/Decoders32/A32OpCodeBImmAl.cs b/ChocolArm64/Decoders32/A32OpCodeBImmAl.cs new file mode 100644 index 00000000..c4a196b6 --- /dev/null +++ b/ChocolArm64/Decoders32/A32OpCodeBImmAl.cs @@ -0,0 +1,16 @@ +using ChocolArm64.Instructions; + +namespace ChocolArm64.Decoders32 +{ + class A32OpCodeBImmAl : A32OpCode + { + public int Imm; + public int H; + + public A32OpCodeBImmAl(Inst inst, long position, int opCode) : base(inst, position, opCode) + { + Imm = (opCode << 8) >> 6; + H = (opCode >> 23) & 2; + } + } +}
\ No newline at end of file |
