Ejemplo n.º 1
0
 /**
  * Create a new InterruptSource.
  *
  * @param scheduler event scheduler
  * @param parent the MOS6526 which this Interrupt belongs to
  */
 protected InterruptSource(EventScheduler scheduler, MOS6526 parent) : base("CIA Interrupt")
 {
     this.parent    = parent;
     eventScheduler = scheduler;
     icr            = 0;
     idr            = 0;
 }
Ejemplo n.º 2
0
        //private void checkAlarm() { }

        //private void event_() { }

        public Tod(EventScheduler scheduler, MOS6526 parent, byte[] regs) : base("CIA Time of Day")//, byte[] regs[0x10])
        {
            eventScheduler = scheduler;
            this.parent    = parent;
            cra            = regs[0x0e];
            crb            = regs[0x0f];
            period         = ~0; // Dummy
        }
Ejemplo n.º 3
0
 /**
  * Create a new timer.
  *
  * @param name component name
  * @param context event context
  * @param parent the MOS6526 which this Timer belongs to
  */
 protected Timer(string name, EventScheduler scheduler, MOS6526 parent) : base(name)
 {
     m_cycleSkippingEvent = new EventCallback <Timer>("Skip CIA clock decrement cycles", this, cycleSkippingEvent);
     eventScheduler       = (scheduler);
     pbToggle             = (false);
     timer            = (0);
     latch            = (0);
     lastControlValue = (0);
     this.parent      = (parent);
     state            = (0);
 }
Ejemplo n.º 4
0
 /**
  * Create timer A.
  */
 public TimerA(EventScheduler scheduler, MOS6526 parent) : base("CIA Timer A", scheduler, parent)
 {
 }
Ejemplo n.º 5
0
 public InterruptSource6526(EventScheduler scheduler, MOS6526 parent) : base(scheduler, parent)
 {
 }