Ejemplo n.º 1
0
        //////////////////////////////////////////////////////////////////////
        //
        //////////////////////////////////////////////////////////////////////
        private bool IsEnabled(e_interrupt inter)
        {
            //return true;
            byte b = GameBoy.Ram.ReadByteAt(m_IME_adress);

            return((b & (0x01 << e_interrupts_bytes[(int)inter])) != 0);
        }
Ejemplo n.º 2
0
        //////////////////////////////////////////////////////////////////////
        //
        //////////////////////////////////////////////////////////////////////
        private void Reset_IF(e_interrupt inter)
        {
            byte b = GameBoy.Ram.ReadByteAt(m_IF_adress);
            byte c = (byte)(~(0x01 << e_interrupts_bytes[(int)inter]));

            b = (byte)(b & c);
            GameBoy.Ram.WriteAt(m_IF_adress, b);
            //GameBoy.Ram.WriteAt(m_IF_adress, 0);
        }
Ejemplo n.º 3
0
        //////////////////////////////////////////////////////////////////////
        //
        //////////////////////////////////////////////////////////////////////
        private bool IsRequested(e_interrupt inter)
        {
            byte b = GameBoy.Ram.ReadByteAt(m_IF_adress);

            return((b & (0x01 << e_interrupts_bytes[(int)inter])) != 0);
        }