示例#1
0
        public Monitor(TextureDisplay texture_display, CRTC crtc, Memory memory, GateArray gate_array)
        {
            m_texture_display = texture_display;
            m_crtc            = crtc;
            m_memory          = memory;
            m_gate_array      = gate_array;

            m_pen_colours = new uint[GateArray.NUM_PEN_SETTINGS];

            // Implicitly hookup the CRTC to the monitor.
            m_crtc.AddHSyncCallback(OnHSync);
            m_crtc.AddVSyncCallback(OnVSync);

            Reset();
        }