aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Decoder/AOpCode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/Decoder/AOpCode.cs')
-rw-r--r--ChocolArm64/Decoder/AOpCode.cs40
1 files changed, 0 insertions, 40 deletions
diff --git a/ChocolArm64/Decoder/AOpCode.cs b/ChocolArm64/Decoder/AOpCode.cs
deleted file mode 100644
index bdc8f13a..00000000
--- a/ChocolArm64/Decoder/AOpCode.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using ChocolArm64.Instruction;
-using ChocolArm64.State;
-using System;
-
-namespace ChocolArm64.Decoder
-{
- class AOpCode : IAOpCode
- {
- public long Position { get; private set; }
- public int RawOpCode { get; private set; }
-
- public AInstEmitter Emitter { get; protected set; }
- public AInstInterpreter Interpreter { get; protected set; }
- public ARegisterSize RegisterSize { get; protected set; }
-
- public AOpCode(AInst Inst, long Position, int OpCode)
- {
- this.Position = Position;
- this.RawOpCode = OpCode;
-
- RegisterSize = ARegisterSize.Int64;
-
- Emitter = Inst.Emitter;
- Interpreter = Inst.Interpreter;
- }
-
- public int GetBitsCount()
- {
- switch (RegisterSize)
- {
- case ARegisterSize.Int32: return 32;
- case ARegisterSize.Int64: return 64;
- case ARegisterSize.SIMD64: return 64;
- case ARegisterSize.SIMD128: return 128;
- }
-
- throw new InvalidOperationException();
- }
- }
-} \ No newline at end of file