Previous 15994 Revisions Next

r11075 Monday 4th April, 2011 at 00:18:33 UTC by Michael Zapf
Corrects a bug which appeared when flashing
[src/mess/machine]at29040a.c

src/mess/machine/at29040a.c
r11074r11075
116116
117117   case s_pgm_3:
118118      /* programming cycle end */
119      memcpy(feeprom->memptr + (feeprom->programming_last_offset & ~0xff), feeprom->programming_buffer, SECTOR_SIZE);
119      memcpy(feeprom->memptr + 2 + (feeprom->programming_last_offset & ~0xff), feeprom->programming_buffer, SECTOR_SIZE);
120120
121121      if (feeprom->s_enabling_sdb)
122122         feeprom->s_sdp = TRUE;
r11074r11075
224224         reply |= 0x01;
225225   }
226226   else
227      reply = feeprom->memptr[offset];
228
227      reply = feeprom->memptr[offset+2];
229228   return reply;
230229}
231230
r11074r11075
304303                  logerror("If the boot block lockout feature has been enabled, the 6-byte software chip erase algorithm will not function.\n");
305304               else
306305               {
307                  memset(feeprom->memptr, 0xff, 524288);
306                  memset(feeprom->memptr+2, 0xff, 524288);
308307                  feeprom->s_dirty = TRUE;
309308               }
310309            }
r11074r11075
423422   feeprom->s_higher_bbl = (feeprom->memptr[1] >> 1) & 1;
424423   feeprom->s_sdp = feeprom->memptr[1] & 1;
425424   feeprom->s_dirty = FALSE;
426
427   feeprom->memptr += 2;
428425}
429426
430427static const char DEVTEMPLATE_SOURCE[] = __FILE__;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team