2 * Simulator of microcontrollers (itsrc.cc)
4 * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
6 * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
10 /* This file is part of microcontroller simulator: ucsim.
12 UCSIM is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
17 UCSIM is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING. If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41 ******************************************************************************
44 cl_it_src::cl_it_src(uchar Iie_mask,
53 poll_priority= apoll_priority;
66 cl_it_src::~cl_it_src(void) {}
69 cl_it_src::is_active(void)
75 cl_it_src::set_active_status(bool Aactive)
81 cl_it_src::activate(void)
83 set_active_status(DD_TRUE);
87 cl_it_src::deactivate(void)
89 set_active_status(DD_FALSE);
96 cl_irqs::cl_irqs(t_index alimit, t_index adelta):
97 cl_sorted_list(alimit, adelta, "irqs")
103 cl_irqs::key_of(void *item)
105 class cl_it_src *itsrc= (class cl_it_src *)item;
106 return(&itsrc->poll_priority);
110 cl_irqs::compare(const void *key1, const void *key2)
112 const int k1= *static_cast<const int *>(key1), k2= *static_cast<const int *>(key2);
124 ******************************************************************************
127 it_level::it_level(int alevel, uint aaddr, uint aPC, class cl_it_src *is):
138 /* End of itsrc.cc */