int
cl_timer0::init(void)
{
- class cl_mem *sfr= uc->mem(MEM_SFR);
+ class cl_address_space *sfr= uc->address_space(MEM_SFR_ID);
if (sfr)
{
}*/
void
-cl_timer0::write(class cl_cell *cell, t_mem *val)
+cl_timer0::write(class cl_memory_cell *cell, t_mem *val)
{
if (cell == cell_tmod)
{
}
/*void
-cl_timer0::mem_cell_changed(class cl_mem *mem, t_addr addr)
+cl_timer0::mem_cell_changed(class cl_m *mem, t_addr addr)
{
- //class cl_mem *sfr= uc->mem(MEM_SFR);
+ //class cl_m *sfr= uc->mem(MEM_SFR);
//t_mem d;
cl_hw::mem_cell_changed(mem, addr);
char *modes[]= { "13 bit", "16 bit", "8 bit autoreload", "2x8 bit" };
//t_mem tmod= cell_tmod->get();
int on;
+ class cl_address_space *sfr= uc->address_space(MEM_SFR_ID);
con->dd_printf("%s[%d] 0x%04x", id_string, id,
256*cell_th->get()+cell_tl->get());
if (/*tmod&bm*/GATE/*0*/)
{
con->dd_printf(" gated");
- on= /*uc->get_mem(MEM_SFR, P3) & uc->port_pins[3] & mask_*/INT/*bm_INT0*/;
+ on= INT;
}
else
- on= TR/*cell_tcon->get(TCON) & mask_TR*/;
+ on= TR;
con->dd_printf(" %s", on?"ON":"OFF");
con->dd_printf(" irq=%c", (cell_tcon->get()&mask_TF)?'1':'0');
- con->dd_printf(" %s", (uc->get_mem(MEM_SFR, IE)&bmET0)?"en":"dis");
+ con->dd_printf(" %s", sfr?"?":((sfr->get(IE)&bmET0)?"en":"dis"));
con->dd_printf(" prio=%d", uc->it_priority(bmPT0));
con->dd_printf("\n");
}