public cTimer(ARM7TDMI cpu, Scheduler.Scheduler scheduler, int index) { this.cpu = cpu; this.scheduler = scheduler; this.OverflowEvent = new Event(0, this.Overflow); this.index = index; this.Data = new cTMCNT_L(cpu); this.Control = new cTMCNT_H(this, this.Data); this.IsSound = index == 0 || index == 1; }
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 cTimer(ARM7TDMI cpu, Scheduler.Scheduler scheduler, int index, cTimer Next) : this(cpu, scheduler, index) { this.Next = Next; }
public cPipeline(ARM7TDMI cpu) { this.cpu = cpu; }