summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2010-09-18 20:30:09 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2010-09-18 20:30:09 +0000
commit1d5e3b7e4a5ae7d7af6df29b8c8673d381c7da78 (patch)
tree603387bb87d3d2882871de39a3508bd446419715
parent49c2403a5de09f8087da08632dc9d55885025a68 (diff)
intelfsh: erase small chips faster (fixes saving in GBA games) (no whatsnew)
-rw-r--r--src/emu/machine/intelfsh.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/emu/machine/intelfsh.c b/src/emu/machine/intelfsh.c
index 6ce1053a283..a7f8e32a500 100644
--- a/src/emu/machine/intelfsh.c
+++ b/src/emu/machine/intelfsh.c
@@ -589,7 +589,14 @@ void intelfsh_device::write_full(UINT32 address, UINT32 data)
m_status = 1 << 3;
m_flash_mode = FM_ERASEAMD4;
- timer_adjust_oneshot( m_timer, ATTOTIME_IN_SEC( 17 ), 0 );
+ if (m_config.m_sector_is_4k)
+ {
+ timer_adjust_oneshot( m_timer, ATTOTIME_IN_SEC( 1 ), 0 );
+ }
+ else
+ {
+ timer_adjust_oneshot( m_timer, ATTOTIME_IN_SEC( 16 ), 0 );
+ }
}
else if( ( data & 0xff ) == 0x30 )
{