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); }
public void TriggerDMA(DMAStartTiming timing) { for (int i = 0; i < 4; i++) { if (!this.DMAChannels[i].Active) { this.DMAChannels[i].Trigger(timing); } } }