OpCodeBImmCond.cs 579 B

1234567891011121314151617181920212223
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCodeBImmCond : OpCodeBImm, IOpCodeCond
  4. {
  5. public Condition Cond { get; private set; }
  6. public OpCodeBImmCond(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  7. {
  8. int o0 = (opCode >> 4) & 1;
  9. if (o0 != 0)
  10. {
  11. Instruction = InstDescriptor.Undefined;
  12. return;
  13. }
  14. Cond = (Condition)(opCode & 0xf);
  15. Immediate = (long)address + DecoderHelper.DecodeImmS19_2(opCode);
  16. }
  17. }
  18. }