public ActionResult DeleteConfirmed(int id) { DMA dMA = db.DMAs.Find(id); db.DMAs.Remove(dMA); db.SaveChanges(); return(RedirectToAction("Index")); }
public CpuBus(byte[] programRom, Ppu ppu, Joypad joypad, DMA dma, Func <int> cpuMasterClockCyclesAction) { _programRom = programRom; _ppu = ppu; _joypad = joypad; _dma = dma; _cpuMasterClockCycles = cpuMasterClockCyclesAction; }
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; }
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)); }
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(); }
public ActionResult Create([Bind(Include = "ID,DMA1")] DMA dMA) { if (ModelState.IsValid) { db.DMAs.Add(dMA); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dMA)); }
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(); }
// 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)); }
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(); } }
public bool TransferIn(uint count, byte[] data, uint offset) { return(DMA.TransferIn(channel, count, data, offset)); }
public void SetupChannel(DMAMode mode, DMATransferType type, bool auto, uint count) { DMA.SetupChannel(channel, count, mode, type, auto); }