summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2011-05-21 22:27:42 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2011-05-21 22:27:42 +0000
commit690f25a5820d733dca603e5be0a33e03a930f387 (patch)
treed1f1249b7b92d065355bba9197d3b7c74c813e87
parent877e1dffce4a5409ad80e1dec939aaab644ad3f6 (diff)
taitof3: initialize all allocated video RAM regions, prevents undeterministic behavior on startup
-rw-r--r--src/mame/video/taito_f3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mame/video/taito_f3.c b/src/mame/video/taito_f3.c
index 23f6846f2c0..e9d83dce04f 100644
--- a/src/mame/video/taito_f3.c
+++ b/src/mame/video/taito_f3.c
@@ -578,11 +578,17 @@ VIDEO_START( f3 )
state->m_f3_game_config=pCFG;
state->m_f3_vram = auto_alloc_array(machine, UINT16, 0x2000/2);
+ memset(state->m_f3_vram, 0, 0x2000);
state->m_f3_pf_data = auto_alloc_array(machine, UINT16, 0xc000/2);
+ memset(state->m_f3_pf_data, 0, 0xc000);
state->m_videoram = auto_alloc_array(machine, UINT16, 0x2000/2);
+ memset(state->m_videoram, 0, 0x2000);
state->m_f3_line_ram = auto_alloc_array(machine, UINT16, 0x10000/2);
+ memset(state->m_f3_line_ram, 0, 0x10000);
state->m_f3_pivot_ram = auto_alloc_array(machine, UINT16, 0x10000/2);
+ memset(state->m_f3_pivot_ram, 0, 0x10000);
state->m_spriteram = auto_alloc_array(machine, UINT16, 0x10000/2);
+ memset(state->m_spriteram, 0, 0x10000);
if (state->m_f3_game_config->extend) {
state->m_pf1_tilemap = tilemap_create(machine, get_tile_info1,tilemap_scan_rows,16,16,64,32);