X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sim%2Fucsim%2Fs51.src%2Fuc89c51r.cc;fp=sim%2Fucsim%2Fs51.src%2Fuc89c51r.cc;h=b1b72e8dbf202c63ccd6bcc35e910236db976f16;hb=a8a7fc8a514bc79114c6d76d6a6aeb885387478c;hp=f29e51d64202555a5de223b7f2bfccdb269c7661;hpb=8bbdc3652fd3221d38c6cbbda3a77542cc09f27e;p=fw%2Fsdcc diff --git a/sim/ucsim/s51.src/uc89c51r.cc b/sim/ucsim/s51.src/uc89c51r.cc index f29e51d6..b1b72e8d 100644 --- a/sim/ucsim/s51.src/uc89c51r.cc +++ b/sim/ucsim/s51.src/uc89c51r.cc @@ -2,7 +2,7 @@ * Simulator of microcontrollers (uc89c51r.cc) * * Copyright (C) 1999,99 Drotos Daniel, Talker Bt. - * + * * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu * */ @@ -144,15 +144,15 @@ cl_89c51r_dummy_hw::init(void) fprintf(stderr, "No SFR to register %s[%d] into\n", id_string, id); } //auxr= sfr->register_hw(AUXR, this, 0); - register_cell(sfr, AUXR, &auxr, wtd_restore); + register_cell(sfr, AUXR1, &auxr1, wtd_restore); return(0); } void cl_89c51r_dummy_hw::write(class cl_memory_cell *cell, t_mem *val) { - if (cell == auxr) - auxr->set_bit0(0x04); + if (cell == auxr1) + auxr1->set_bit0(0x04); }