Previous 15994 Revisions Next

r8144 Sunday 23rd May, 2010 at 00:44:33 UTC by R. Belmont
Flash: 4k sectors should erase in 1/8th the time of 64k.
[src/emu/machine]intelfsh.c

src/emu/machine/intelfsh.c
r8143r8144
428428               {
429429                  memset( &flash_memory[ address & ~0xfff ], 0xff, 4 * 1024 );
430430                  c->erase_sector = address & ~0xfff;
431                  timer_adjust_oneshot( c->timer, ATTOTIME_IN_MSEC( 125 ), 0 );
431432               }
432433               else
433434               {
434435                  memset( &flash_memory[ address & ~0xffff ], 0xff, 64 * 1024 );
435436                  c->erase_sector = address & ~0xffff;
437                  timer_adjust_oneshot( c->timer, ATTOTIME_IN_SEC( 1 ), 0 );
436438               }
437439            }
438440            break;
r8143r8144
443445               {
444446                   memset( &flash_memory[ address & ~0x7ff ], 0xff, 4 * 1024 );
445447                  c->erase_sector = address & ~0x7ff;
448                  timer_adjust_oneshot( c->timer, ATTOTIME_IN_MSEC( 125 ), 0 );
446449               }
447450               else
448451               {
449452                   memset( &flash_memory[ address & ~0x7fff ], 0xff, 64 * 1024 );
450453                  c->erase_sector = address & ~0x7fff;
454                  timer_adjust_oneshot( c->timer, ATTOTIME_IN_SEC( 1 ), 0 );
451455               }
452456            }
453457            break;
r8143r8144
455459
456460         c->status = 1 << 3;
457461         c->flash_mode = FM_ERASEAMD4;
458
459         timer_adjust_oneshot( c->timer, ATTOTIME_IN_SEC( 1 ), 0 );
460462      }
461463      else
462464      {

Previous 15994 Revisions Next


© 1998-2018 The MESS Team