Exemple #1
0
        protected virtual void onLoad(BusEventArgs e)
        {
            EventHandler <BusEventArgs> handler = LoadEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
        protected virtual void onVblank(BusEventArgs e)
        {
            EventHandler <BusEventArgs> handler = VideoEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #3
0
        protected virtual void onInterrupt(BusEventArgs e)
        {
            EventHandler <BusEventArgs> handler = InterruptEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #4
0
        protected virtual void onStore(BusEventArgs e)
        {
            EventHandler <BusEventArgs> handler = StoreEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #5
0
        protected virtual void onWrite(BusEventArgs e)
        {
            EventHandler <BusEventArgs> handler = OutEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #6
0
 public void Bus_InterruptEvent(object sender, BusEventArgs e)
 {
     lock (IrqLock) {
         if (IntE)
         {
             Irq             = true;
             interruptVector = e.Data;
         }
     }
 }
 public void Bus_VideoEvent(object sender, BusEventArgs e)
 {
     Device.vblank();
 }
 public void Bus_StoreEvent(object sender, BusEventArgs e)
 {
     Ram[e.Adr] = e.Data;
 }
        public void Bus_LoadEvent(object sender, BusEventArgs e)
        {
            var bus = sender as Bus;

            bus.Data = Ram[e.Adr];
        }
 public void Bus_OutEvent(object sender, BusEventArgs e)
 {
     outputDevices[(Word)e.Adr].write((Word)e.Adr, e.Data);
 }
 public void Bus_InEvent(object sender, BusEventArgs e)
 {
     Bus.Data = inputDevices[(Word)e.Adr].read((Word)e.Adr);
 }