Exemplo n.º 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));
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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 !;
 }
Exemplo n.º 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);
 }
Exemplo n.º 7
0
 public void Setup()
 {
     state = (SparcProcessorState)arch.CreateProcessorState();
     repository = new MockRepository();
     host = repository.StrictMock<IRewriterHost>();
 }