示例#1
0
        /// <summary>
        /// Machine object constructor
        /// </summary>
        public Machine()
        {
            // Setup address spave
            mem = new AddressSpace
            {
                machine = this
            };

            // Setup CPU
            cpu            = new M6502(mem);
            breakpoint     = new BreakPoints();
            trace          = new Trace();
            mem.breakpoint = breakpoint;

            Devices = new ArrayList();
        }
示例#2
0
 public M6502DASM(AddressSpace mem, M6502 cpu)
 {
     Mem = mem;
     CPU = cpu;
     InstallOpcodeHandlers();
 }