示例#1
0
 public bool Trigger(DMAStartTiming timing)
 {
     if (this.DMACNT_H.Enabled && timing == this.DMACNT_H.StartTiming)  // enabled
     {
         // Console.WriteLine($"DMA{this.index}: {this.SAD:x8} -> {this.DAD:x8}");
         this.cpu.DMAActive = this.Active = true;
         return(true);
     }
     return(false);
 }
示例#2
0
文件: CPU.DMA.cs 项目: DenSinH/GBAC-
 public void TriggerDMA(DMAStartTiming timing)
 {
     for (int i = 0; i < 4; i++)
     {
         if (!this.DMAChannels[i].Active)
         {
             this.DMAChannels[i].Trigger(timing);
         }
     }
 }