Exemplo n.º 1
0
        public void Init(BusManager bmgr, UlaDeviceBase device)
        {
            m_bmgr = bmgr;
            m_device = device;

            cbxType.SelectedIndex = -1;
            if (m_device != null)
                for (int i = 0; i < cbxType.Items.Count; i++)
                    if (m_device.Name == (string)cbxType.Items[i])
                    {
                        cbxType.SelectedIndex = i;
                        break;
                    }
        }
Exemplo n.º 2
0
        public override void BusInit(IBusManager bmgr)
        {
            m_ula = bmgr.FindDevice <UlaDeviceBase>();
            bmgr.Events.SubscribeRdMem(0xC000, 0x0000, ReadMem0000);
            bmgr.Events.SubscribeRdMem(0xC000, 0x4000, ReadMem4000);
            bmgr.Events.SubscribeRdMem(0xC000, 0x8000, ReadMem8000);
            bmgr.Events.SubscribeRdMem(0xC000, 0xC000, ReadMemC000);
            bmgr.Events.SubscribeRdMemM1(0xC000, 0x0000, ReadMem0000);
            bmgr.Events.SubscribeRdMemM1(0xC000, 0x4000, ReadMem4000);
            bmgr.Events.SubscribeRdMemM1(0xC000, 0x8000, ReadMem8000);
            bmgr.Events.SubscribeRdMemM1(0xC000, 0xC000, ReadMemC000);

            bmgr.Events.SubscribeWrMem(0xC000, 0x0000, WriteMem0000);
            bmgr.Events.SubscribeWrMem(0xC000, 0x4000, WriteMem4000);
            bmgr.Events.SubscribeWrMem(0xC000, 0x8000, WriteMem8000);
            bmgr.Events.SubscribeWrMem(0xC000, 0xC000, WriteMemC000);
            if (m_viewHolder != null)
            {
                bmgr.AddCommandUi(m_viewHolder.CommandOpen);
            }
        }
Exemplo n.º 3
0
        public override void BusInit(IBusManager bmgr)
        {
            m_ula = bmgr.FindDevice<UlaDeviceBase>();
            bmgr.SubscribeRDMEM(0xC000, 0x0000, ReadMem0000);
            bmgr.SubscribeRDMEM(0xC000, 0x4000, ReadMem4000);
            bmgr.SubscribeRDMEM(0xC000, 0x8000, ReadMem8000);
            bmgr.SubscribeRDMEM(0xC000, 0xC000, ReadMemC000);
            bmgr.SubscribeRDMEM_M1(0xC000, 0x0000, ReadMem0000);
            bmgr.SubscribeRDMEM_M1(0xC000, 0x4000, ReadMem4000);
            bmgr.SubscribeRDMEM_M1(0xC000, 0x8000, ReadMem8000);
            bmgr.SubscribeRDMEM_M1(0xC000, 0xC000, ReadMemC000);

            bmgr.SubscribeWRMEM(0xC000, 0x0000, WriteMem0000);
            bmgr.SubscribeWRMEM(0xC000, 0x4000, WriteMem4000);
            bmgr.SubscribeWRMEM(0xC000, 0x8000, WriteMem8000);
            bmgr.SubscribeWRMEM(0xC000, 0xC000, WriteMemC000);
        }