Read() public abstract method

public abstract Read ( PrimitiveType dataType ) : Constant
dataType PrimitiveType
return Constant
Ejemplo n.º 1
0
        public void WriteByteRange(MemoryArea image, Address begin, Address addrEnd, InstrWriter writer)
        {
            EndianImageReader rdr = arch.CreateImageReader(image, begin);

            while (rdr.Address < addrEnd)
            {
                var v = rdr.Read(this.instrByteSize);
                writer.WriteFormat(this.instrByteFormat, v.ToUInt64());
            }
        }
Ejemplo n.º 2
0
        public void WriteByteRange(MemoryArea image, IProcessorArchitecture arch, Address begin, Address addrEnd, InstrWriter writer)
        {
            EndianImageReader rdr  = arch.CreateImageReader(image, begin);
            var    byteSize        = (7 + arch.InstructionBitSize) / 8;
            string instrByteFormat = $"{{0:X{byteSize * 2}}} "; // each byte is two nybbles.

            this.instrByteSize = PrimitiveType.CreateWord(arch.InstructionBitSize);

            while (rdr.Address < addrEnd)
            {
                var v = rdr.Read(this.instrByteSize);
                writer.WriteFormat(instrByteFormat, v.ToUInt64());
            }
        }