public abstract Read ( PrimitiveType dataType ) : Constant | ||
dataType | PrimitiveType | |
리턴 | Constant |
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()); } }
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()); } }