public DMAChannel(ARM7TDMI cpu, int index) { this.DMACNT_H = new cDMACNT_H(this, index == 3); this.DMACNT_L = new cDMACNT_L(cpu.bus, (ushort)(index == 3 ? 0xffff : 0x3fff)); this.DMASAD = new cDMAAddress(cpu.bus, index == 0); this.DMADAD = new cDMAAddress(cpu.bus, index != 3); this.cpu = cpu; this.IF = cpu.IO.IF; this.index = index; this.Sound = index == 1 || index == 2; }
public DMAInfo(uint DAD, uint SAD, uint UnitCount, cDMACNT_H dmacnt_h) { this.DAD = DAD.ToString("x8"); this.SAD = SAD.ToString("x8"); this.UnitCount = UnitCount.ToString("x8"); this.DestAddrControl = ((ushort)dmacnt_h.DestAddrControl).ToString("d2"); this.SourceAddrControl = ((ushort)dmacnt_h.SourceAddrControl).ToString("d2"); this.Repeat = dmacnt_h.DMARepeat ? "1" : "0"; this.UnitLength = dmacnt_h.DMATransferType ? "32" : "16"; this.Timing = dmacnt_h.StartTiming.ToString(); this.IRQ = dmacnt_h.IRQOnEnd ? "1" : "0"; this.Enabled = dmacnt_h.Enabled ? "1" : "0"; }
public BackupEEPROM(cDMACNT_H DMA3CNT_H, cDMACNT_L DMA3CNT_L) { this.DMA3CNT_H = DMA3CNT_H; this.DMA3CNT_L = DMA3CNT_L; }