summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/avt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/avt.cpp')
-rw-r--r--src/mame/drivers/avt.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mame/drivers/avt.cpp b/src/mame/drivers/avt.cpp
index 6af0e540daf..3aad541999b 100644
--- a/src/mame/drivers/avt.cpp
+++ b/src/mame/drivers/avt.cpp
@@ -430,6 +430,8 @@
#include "tilemap.h"
+namespace {
+
#define MASTER_CLOCK XTAL(16'000'000) /* unknown */
#define CPU_CLOCK MASTER_CLOCK/4 /* guess... seems accurate */
#define CRTC_CLOCK MASTER_CLOCK/24 /* it gives 63.371293 Hz. with current settings */
@@ -538,6 +540,12 @@ TILE_GET_INFO_MEMBER(avt_state::get_bg_tile_info)
void avt_state::video_start()
{
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(avt_state::get_bg_tile_info)), TILEMAP_SCAN_ROWS, 8, 8, 28, 32);
+
+ m_crtc_index = 0;
+ std::fill(std::begin(m_crtc_vreg), std::end(m_crtc_vreg), 0);
+
+ save_item(NAME(m_crtc_index));
+ save_item(NAME(m_crtc_vreg));
}
@@ -1090,6 +1098,8 @@ ROM_START( avtnfl )
ROM_LOAD( "avtnfl", 0x0000, 0x0200, CRC(ac975c82) SHA1(9d124115cd7905482bc197462b65d3b5afdab99b) )
ROM_END
+} // Anonymous namespace
+
/*********************************************
* Game Drivers *