Exemple #1
0
        public DmaChannel(GameboyAdvance gba, int channelNumber)
        {
            this.gba           = gba;
            this.channelNumber = channelNumber;

            DmaCnt = new DmaControlRegister(this);
        }
Exemple #2
0
        public DmaChannel(GameboyAdvance gba, int channelNumber)
        {
            this.gba           = gba;
            this.channelNumber = channelNumber;

            DmaCnt = new DmaControlRegister(gba, this, (UInt32)(0x40000BA + (channelNumber * 0xC)));

            // TODO: These are all write only!
            // Should: reads open bus if the whole 32-bit word is unused and zero otherwise.
            SourceAddress = new MemoryRegister32(gba.Memory, (UInt32)(0x40000B0 + (channelNumber * 0xC)), true, true);
            DestAddress   = new MemoryRegister32(gba.Memory, (UInt32)(0x40000B4 + (channelNumber * 0xC)), true, true);
            WordCount     = new MemoryRegister16(gba.Memory, (UInt32)(0x40000B8 + (channelNumber * 0xC)), true, true);
        }