Example #1
0
 public Mos6502ProcessorState(Mos6502ProcessorState that) : base(that)
 {
     this.arch  = that.arch;
     regs       = (byte[])that.regs.Clone();
     this.valid = (bool[])that.valid.Clone();
     this.InstructionPointer = that.InstructionPointer;
 }
Example #2
0
 public Disassembler(Mos6502Architecture arch, EndianImageReader rdr)
 {
     this.arch = arch;
     this.rdr  = rdr;
     this.addr = rdr.Address;
     this.ops  = new List <Operand>();
 }
Example #3
0
 public Mos6502ProcessorState(Mos6502ProcessorState that) : base(that)
 {
     this.arch  = that.arch;
     regs       = (byte[])that.regs.Clone();
     this.valid = (bool[])that.valid.Clone();
     ip         = that.ip;
 }
Example #4
0
 public Mos6502Emulator(Mos6502Architecture arch, SegmentMap segmentMap, IPlatformEmulator envEmulator)
     : base(segmentMap)
 {
     this.arch        = arch;
     this.map         = segmentMap;
     this.envEmulator = envEmulator;
     this.regs        = new ushort[12];
 }
Example #5
0
 public Assembler(IServiceProvider services, Mos6502Architecture arch, Address addrBase, List <ImageSymbol> symbols)
 {
     this.services = services;
     this.arch     = arch;
     this.addrBase = addrBase;
     this.symbols  = symbols;
     this.m        = new Core.Assemblers.Emitter();
     this.symtab   = new SymbolTable();
 }
Example #6
0
 public Rewriter(Mos6502Architecture arch, EndianImageReader rdr, ProcessorState state, IStorageBinder binder, IRewriterHost host)
 {
     this.arch   = arch;
     this.state  = state;
     this.binder = binder;
     this.host   = host;
     this.rdr    = rdr;
     this.dasm   = new Disassembler(rdr).GetEnumerator();
 }
Example #7
0
 public Assembler(ServiceContainer sc, Mos6502Architecture arch, Address addrBase, List <ImageSymbol> symbols)
 {
     this.sc       = sc;
     this.arch     = arch;
     this.addrBase = addrBase;
     this.symbols  = symbols;
     this.m        = new Core.Assemblers.Emitter();
     this.symtab   = new SymbolTable();
 }
Example #8
0
 public Rewriter(Mos6502Architecture arch, EndianImageReader rdr, ProcessorState state, IStorageBinder binder, IRewriterHost host)
 {
     this.arch     = arch;
     this.state    = state;
     this.binder   = binder;
     this.host     = host;
     this.rdr      = rdr;
     this.dasm     = new Disassembler(arch, rdr).GetEnumerator();
     this.instrs   = new List <RtlInstruction>();
     this.m        = new RtlEmitter(instrs);
     this.instrCur = default !;
Example #9
0
 public Mos6502ProcessorState(Mos6502Architecture arch)
 {
     this.arch  = arch;
     this.regs  = new byte[4];
     this.valid = new bool[4];
 }