Exemple #1
0
 public override MipsInstruction Decode(uint wInstr, Mips16eDisassembler dasm)
 {
     if (!dasm.rdr.TryReadUInt16(out ushort uLow16bits))
         return dasm.CreateInvalidInstruction();
     dasm.extend = wInstr;
     return rootDecoder.Decode(uLow16bits, dasm);
 }
Exemple #2
0
 public override MipsInstruction Decode(uint wInstr, Mips16eDisassembler dasm)
 {
     if (dasm.extend.HasValue)
         return extended.Decode(wInstr, dasm);
     else 
         return nonExtended.Decode(wInstr, dasm);
 }
Exemple #3
0
 public override MipsInstruction Decode(uint wInstr, Mips16eDisassembler dasm)
 {
     if (!dasm.rdr.TryReadUInt16(out ushort uLow16bits))
         return dasm.CreateInvalidInstruction();
     var uInstr32 = (wInstr << 16) | uLow16bits;
     return decoder.Decode(uInstr32, dasm);
 }