示例#1
0
 public SparcRewriter(SparcArchitecture arch, EndianImageReader rdr, SparcProcessorState state, Frame frame, IRewriterHost host)
 {
     this.arch  = arch;
     this.frame = frame;
     this.host  = host;
     this.dasm  = new LookaheadEnumerator <SparcInstruction>(CreateDisassemblyStream(rdr));
 }
示例#2
0
 public SparcRewriter(SparcArchitecture arch, IEnumerator <SparcInstruction> instrs, SparcProcessorState state, Frame frame, IRewriterHost host)
 {
     this.arch  = arch;
     this.state = state;
     this.frame = frame;
     this.host  = host;
     this.dasm  = new LookaheadEnumerator <SparcInstruction>(instrs);
 }
示例#3
0
 public SparcProcessorState(SparcProcessorState old)
 {
     this.arch       = old.arch;
     this.regs       = old.regs.ToArray();
     this.valid      = old.valid.ToArray();
     this.flags      = old.flags;
     this.validFlags = old.validFlags;
 }
示例#4
0
 public SparcProcessorState(SparcProcessorState old)
 {
     this.arch = old.arch;
     this.regs = old .regs.ToArray();
     this.valid = old.valid.ToArray();
     this.flags = old.flags;
     this.validFlags = old.validFlags;
 }
示例#5
0
 public SparcRewriter(SparcArchitecture arch, EndianImageReader rdr, SparcProcessorState state, IStorageBinder binder, IRewriterHost host)
 {
     this.arch     = arch;
     this.binder   = binder;
     this.host     = host;
     this.rdr      = rdr;
     this.dasm     = new LookaheadEnumerator <SparcInstruction>(CreateDisassemblyStream(rdr));
     this.instrCur = null !;
     this.m        = null !;
 }
示例#6
0
 public SparcRewriter(SparcArchitecture arch, IEnumerator <SparcInstruction> instrs, SparcProcessorState state, IStorageBinder binder, IRewriterHost host)
 {
     this.arch   = arch;
     this.binder = binder;
     this.host   = host;
     this.dasm   = new LookaheadEnumerator <SparcInstruction>(instrs);
 }
示例#7
0
 public void Setup()
 {
     state = (SparcProcessorState)arch.CreateProcessorState();
     repository = new MockRepository();
     host = repository.StrictMock<IRewriterHost>();
 }