Merge branch ucsim-034-pre3 to main trunk; new version 0.4
[fw/sdcc] / sim / ucsim / avr.src / logic_inst.cc
index fadc9808ef2def17e938043cb3791d731bea0e33..3a2c935b5d137428dbe2bd99e4164e05de1b565c 100644 (file)
@@ -45,7 +45,7 @@ cl_avr::ori_Rd_K(t_mem code)
   d= (code&0xf0)>>4;
   K= ((code&0xf00)>>4)|(code&0xf);
   data= K | ram->read(d);
-  ram->write(d+16, &data);
+  ram->write(d+16, data);
   set_zn0s(data);
   return(resGO);
 }
@@ -67,7 +67,7 @@ cl_avr::andi_Rd_K(t_mem code)
   d= (code&0xf0)>>4;
   K= ((code&0xf00)>>4)|(code&0xf);
   data= K & ram->read(d);
-  ram->write(d+16, &data);
+  ram->write(d+16, data);
   set_zn0s(data);
   return(resGO);
 }
@@ -89,7 +89,7 @@ cl_avr::and_Rd_Rr(t_mem code)
   d= (code&0x1f0)>>4;
   r= ((code&0x200)>>5)|(code&0xf);
   data= ram->read(d) & ram->read(r);
-  ram->write(d, &data);
+  ram->write(d, data);
   set_zn0s(data);
   return(resGO);
 }
@@ -111,7 +111,7 @@ cl_avr::eor_Rd_Rr(t_mem code)
   d= (code&0x1f0)>>4;
   r= ((code&0x200)>>5)|(code&0xf);
   data= ram->read(d) ^ ram->read(r);
-  ram->write(d, &data);
+  ram->write(d, data);
   set_zn0s(data);
   return(resGO);
 }
@@ -133,7 +133,7 @@ cl_avr::or_Rd_Rr(t_mem code)
   d= (code&0x1f0)>>4;
   r= ((code&0x200)>>5)|(code&0xf);
   data= ram->read(d) | ram->read(r);
-  ram->write(d, &data);
+  ram->write(d, data);
   set_zn0s(data);
   return(resGO);
 }