diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-05-26 17:49:21 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-05-26 17:50:47 -0300 |
| commit | 9670c096e410add36314a247b77334c0c1d61256 (patch) | |
| tree | dc66ff6966b5544ee78e45b571c187225f96c35d /ChocolArm64/Decoder32 | |
| parent | cb1cf489f96b09872f8a9db41226c6f5d1654575 (diff) | |
Initial work to support AArch32 with a interpreter, plus nvmm stubs (not used for now)
Diffstat (limited to 'ChocolArm64/Decoder32')
| -rw-r--r-- | ChocolArm64/Decoder32/A32OpCode.cs | 15 | ||||
| -rw-r--r-- | ChocolArm64/Decoder32/A32OpCodeBImmAl.cs | 16 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ChocolArm64/Decoder32/A32OpCode.cs b/ChocolArm64/Decoder32/A32OpCode.cs new file mode 100644 index 00000000..56f870df --- /dev/null +++ b/ChocolArm64/Decoder32/A32OpCode.cs @@ -0,0 +1,15 @@ +using ChocolArm64.Decoder; +using ChocolArm64.Instruction; + +namespace ChocolArm64.Decoder32 +{ + class A32OpCode : AOpCode + { + public ACond Cond { get; private set; } + + public A32OpCode(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode) + { + Cond = (ACond)((uint)OpCode >> 28); + } + } +}
\ No newline at end of file diff --git a/ChocolArm64/Decoder32/A32OpCodeBImmAl.cs b/ChocolArm64/Decoder32/A32OpCodeBImmAl.cs new file mode 100644 index 00000000..71bca7f9 --- /dev/null +++ b/ChocolArm64/Decoder32/A32OpCodeBImmAl.cs @@ -0,0 +1,16 @@ +using ChocolArm64.Instruction; + +namespace ChocolArm64.Decoder32 +{ + class A32OpCodeBImmAl : A32OpCode + { + public int Imm; + public int H; + + public A32OpCodeBImmAl(AInst Inst, long Position, int OpCode) : base(Inst, Position, OpCode) + { + Imm = (OpCode << 8) >> 6; + H = (OpCode >> 23) & 2; + } + } +}
\ No newline at end of file |
