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 cKeyInput(cKeyInterruptControl KEYCNT, cIF IF) { this.KEYCNT = KEYCNT; this.IF = IF; // attempt to update controller state if (!this.xinput.UpdateState()) { // if there is no controller connected, an exception will be thrown and we can instead // initialize the register with only the keyboardcontroller this.xinput = new NoXInputController(); // todo: recognize new controller if one is plugged in } }
public cVCOUNT(cIF IF, cDISPSTAT DISPSTAT) : base(null) { this.IF = IF; this.DISPSTAT = DISPSTAT; }
public cDISPSTAT(cIF IF, PPU ppu) : base(ppu) { this.IF = IF; }
public cSIOCNT(cIF IF) { this.IF = IF; }