T16: Implement BX

This commit is contained in:
merry 2022-02-10 17:16:25 +00:00
parent d4fe1ee5a8
commit cb4ccec421
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
namespace ARMeilleure.Decoders
{
class OpCodeT16BReg : OpCodeT16, IOpCode32BReg
{
public int Rm { get; }
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode, bool inITBlock) => new OpCodeT16BReg(inst, address, opCode, inITBlock);
public OpCodeT16BReg(InstDescriptor inst, ulong address, int opCode, bool inITBlock) : base(inst, address, opCode, inITBlock)
{
Rm = (opCode >> 3) & 0xf;
}
}
}

View file

@ -974,6 +974,7 @@ namespace ARMeilleure.Decoders
#region "OpCode Table (AArch32, T16/T32)"
// T16
SetT16("010001110xxxx000", InstName.Bx, InstEmit32.Bx, OpCodeT16BReg.Create);
#endregion
FillFastLookupTable(InstA32FastLookup, AllInstA32, ToFastLookupIndexA);