示例#1
0
 public EtraxRewriter(EtraxArchitecture arch, EndianImageReader rdr, ProcessorState state, IStorageBinder binder, IRewriterHost host)
 {
     this.arch   = arch;
     this.rdr    = rdr;
     this.state  = state;
     this.binder = binder;
     this.host   = host;
     this.dasm   = new EtraxDisassembler(arch, rdr).GetEnumerator();
     this.instrs = new List <RtlInstruction>();
     this.m      = new RtlEmitter(instrs);
     instr       = default !;
示例#2
0
 protected override void DoRender(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options)
 {
     renderer.WriteFormat("{0}:{1}", Register.Name, EtraxInstruction.SizeFormat(Scale));
 }