*/
cl_watched_cell::cl_watched_cell(class cl_address_space *amem, t_addr aaddr,
- class cl_memory_cell **astore,
- enum what_to_do_on_cell_change awtd)
+ class cl_memory_cell **astore,
+ enum what_to_do_on_cell_change awtd)
{
mem= amem;
addr= aaddr;
{
cell= mem->get_cell(addr);
if (store)
- *store= cell;
+ *store= cell;
}
}
void
cl_watched_cell::mem_cell_changed(class cl_address_space *amem, t_addr aaddr,
- class cl_hw *hw)
+ class cl_hw *hw)
{
if (mem &&
mem == amem &&
{
cell= mem->get_cell(addr);
if (store &&
- (wtd & WTD_RESTORE))
- *store= cell;
+ (wtd & WTD_RESTORE))
+ *store= cell;
if (wtd & WTD_WRITE)
- {
- t_mem d= cell->get();
- hw->write(cell, &d);
- }
+ {
+ t_mem d= cell->get();
+ hw->write(cell, &d);
+ }
}
}
void
cl_watched_cell::address_space_added(class cl_address_space *amem,
- class cl_hw *hw)
+ class cl_hw *hw)
{
}
{
cell= mem->get_cell(addr);
if (store &&
- (wtd & WTD_RESTORE))
- *store= cell;
+ (wtd & WTD_RESTORE))
+ *store= cell;
if (wtd & WTD_WRITE)
- {
- t_mem d= cell->get();
- hw->write(cell, &d);
- }
+ {
+ t_mem d= cell->get();
+ hw->write(cell, &d);
+ }
}
}
void
cl_used_cell::address_space_added(class cl_address_space *amem,
- class cl_hw *hw)
+ class cl_hw *hw)
{
}
}*/
void
-cl_hw::set_cmd(class cl_cmdline *cmdline, class cl_console *con)
+cl_hw::set_cmd(class cl_cmdline *cmdline, class cl_console_base *con)
{
con->dd_printf("Nothing to do\n");
}
class cl_memory_cell *
cl_hw::register_cell(class cl_address_space *mem, t_addr addr,
- class cl_memory_cell **store,
- enum what_to_do_on_cell_change awtd)
+ class cl_memory_cell **store,
+ enum what_to_do_on_cell_change awtd)
{
class cl_watched_cell *wc;
class cl_memory_cell *cell;
class cl_memory_cell *
cl_hw::use_cell(class cl_address_space *mem, t_addr addr,
- class cl_memory_cell **store,
- enum what_to_do_on_cell_change awtd)
+ class cl_memory_cell **store,
+ enum what_to_do_on_cell_change awtd)
{
class cl_watched_cell *wc;
class cl_memory_cell *cell;
for (i= 0; i < watched_cells->count; i++)
{
class cl_watched_cell *wc=
- (class cl_watched_cell *)(watched_cells->at(i));
+ (class cl_watched_cell *)(watched_cells->at(i));
wc->mem_cell_changed(mem, addr, this);
}
}
for (i= 0; i < watched_cells->count; i++)
{
class cl_watched_cell *wc=
- dynamic_cast<class cl_watched_cell *>(watched_cells->object_at(i));
+ dynamic_cast<class cl_watched_cell *>(watched_cells->object_at(i));
wc->address_space_added(as, this);
}
}
void
-cl_hw::print_info(class cl_console *con)
+cl_hw::print_info(class cl_console_base *con)
{
con->dd_printf("%s[%d]\n", id_string, id);
}
{
// partner is already set
if (partner != hw)
- {
- // partner changed?
- partner= hw;
- }
+ {
+ // partner changed?
+ partner= hw;
+ }
else
- partner= hw;
+ partner= hw;
}
partner= hw;
}
id == new_hw->id)
{
if (partner)
- {
- // partner changed?
- partner= new_hw;
- }
+ {
+ // partner changed?
+ partner= new_hw;
+ }
else
- partner= new_hw;
+ partner= new_hw;
}
}