示例#1
0
 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;
 }
示例#2
0
        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
            }
        }
示例#3
0
文件: IO.LCD.cs 项目: DenSinH/GBAC-
 public cVCOUNT(cIF IF, cDISPSTAT DISPSTAT) : base(null)
 {
     this.IF       = IF;
     this.DISPSTAT = DISPSTAT;
 }
示例#4
0
文件: IO.LCD.cs 项目: DenSinH/GBAC-
 public cDISPSTAT(cIF IF, PPU ppu) : base(ppu)
 {
     this.IF = IF;
 }
示例#5
0
文件: IO.SIO.cs 项目: DenSinH/GBAC-
 public cSIOCNT(cIF IF)
 {
     this.IF = IF;
 }