示例#1
0
        public ActionResult DeleteConfirmed(int id)
        {
            DMA dMA = db.DMAs.Find(id);

            db.DMAs.Remove(dMA);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#2
0
 public CpuBus(byte[] programRom, Ppu ppu, Joypad joypad, DMA dma, Func <int> cpuMasterClockCyclesAction)
 {
     _programRom           = programRom;
     _ppu                  = ppu;
     _joypad               = joypad;
     _dma                  = dma;
     _cpuMasterClockCycles = cpuMasterClockCyclesAction;
 }
示例#3
0
 public BUS(GPU gpu, CDROM cdrom, SPU spu, JOYPAD joypad, TIMERS timers, MDEC mdec) {
     interruptController = new InterruptController();
     dma = new DMA(this);
     this.gpu = gpu;
     this.cdrom = cdrom;
     this.timers = timers;
     this.mdec = mdec;
     this.spu = spu;
     this.joypad = joypad;
 }
示例#4
0
 public ActionResult Edit([Bind(Include = "ID,DMA1")] DMA dMA)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dMA).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(dMA));
 }
示例#5
0
 public BUS(IHostWindow window, Controller controller, CDROM cdrom)
 {
     interruptController = new InterruptController();
     dma        = new DMA(this);
     gpu        = new GPU(window);
     this.cdrom = cdrom;
     timers     = new TIMERS();
     joypad     = new JOYPAD(controller);
     mdec       = new MDEC();
     spu        = new SPU();
 }
示例#6
0
        public ActionResult Create([Bind(Include = "ID,DMA1")] DMA dMA)
        {
            if (ModelState.IsValid)
            {
                db.DMAs.Add(dMA);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(dMA));
        }
示例#7
0
文件: BUS.cs 项目: mzboray/ProjectPSX
        public BUS()
        {
            interruptController = new InterruptController(); //refactor this to interface and callbacks
            dma    = new DMA(this);
            gpu    = new GPU();
            cdrom  = new CDROM();
            timers = new TIMERS();
            joypad = new JOYPAD();
            mdec   = new MDEC();

            initMem();
        }
示例#8
0
        // GET: /DMAs/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            DMA dMA = db.DMAs.Find(id);

            if (dMA == null)
            {
                return(HttpNotFound());
            }
            return(View(dMA));
        }
示例#9
0
        public BUS()
        {
            interruptController = new InterruptController(); //refactor this to interface and callbacks
            dma    = new DMA();
            gpu    = new GPU();
            cdrom  = new CDROM();
            timers = new TIMERS();
            joypad = new JOYPAD();

            dma.setDMA_Transfer(this);

            try {
                initMem();
            } finally {
                ramHandle.Free();
            }
        }
示例#10
0
 public bool TransferIn(uint count, byte[] data, uint offset)
 {
     return(DMA.TransferIn(channel, count, data, offset));
 }
示例#11
0
 public void SetupChannel(DMAMode mode, DMATransferType type, bool auto, uint count)
 {
     DMA.SetupChannel(channel, count, mode, type, auto);
 }