Ejemplo n.º 1
0
        public override SparcInstruction DisassembleInstruction()
        {
            if (!imageReader.IsValid)
            {
                return(null);
            }
            ops.Clear();
            var  addr   = imageReader.Address;
            uint wInstr = imageReader.ReadBeUInt32();

            instrCur                   = rootDecoder.Decode(wInstr, this);
            instrCur.Address           = addr;
            instrCur.Length            = 4;
            instrCur.InstructionClass |= wInstr == 0 ? InstrClass.Zero : 0;
            return(instrCur);
        }
Ejemplo n.º 2
0
 public override Address ReadCodeAddress(int size, EndianImageReader rdr, ProcessorState state)
 {
     return(Address.Ptr32(rdr.ReadBeUInt32()));
 }