コード例 #1
0
 public SID6526(sidPlayer player)
 {
     m_player       = player;
     m_eventContext = m_player.m_scheduler;
     m_phase        = event_phase_t.EVENT_CLOCK_PHI1;
     rnd            = 0;
     m_taEvent      = new CiaEvent(this);
     clock(0xffff);
     reset(false);
 }
コード例 #2
0
        // only used for deserializing
        public SID6526(sidPlayer player, BinaryReader reader, EventList events)
        {
            m_player       = player;
            m_eventContext = m_player.m_scheduler;

            LoadFromReader(reader);

            m_taEvent       = events.GetEventById(m_taEvent_id) as CiaEvent;
            m_taEvent.m_cia = this;

#if DEBUG
            if (m_taEvent == null)
            {
                throw new Exception("SID6526: CiaEvent not found");
            }
#endif
        }