From 01dd625ad2dce2eae6c1a58f51b7d1242dafc8bc Mon Sep 17 00:00:00 2001 From: AJR Date: Wed, 11 Jul 2018 19:21:48 -0400 Subject: [PATCH] crt9007: Save more variables (nw) --- src/devices/video/crt9007.cpp | 10 ++++++++-- src/devices/video/crt9007.h | 10 +++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/devices/video/crt9007.cpp b/src/devices/video/crt9007.cpp index 45455aaee23..f8b72603ea2 100644 --- a/src/devices/video/crt9007.cpp +++ b/src/devices/video/crt9007.cpp @@ -520,6 +520,11 @@ void crt9007_device::device_start() save_item(NAME(m_vlt)); save_item(NAME(m_drb)); save_item(NAME(m_lpstb)); + save_item(NAME(m_dmar)); + save_item(NAME(m_ack)); + save_item(NAME(m_dma_count)); + save_item(NAME(m_dma_burst)); + save_item(NAME(m_dma_delay)); } @@ -556,6 +561,7 @@ void crt9007_device::device_reset() m_write_int(CLEAR_LINE); // 28 (DMAR) = 0 + m_dmar = false; m_write_dmar(CLEAR_LINE); // 29 (WBEN) = 0 @@ -669,7 +675,7 @@ void crt9007_device::device_timer(emu_timer &timer, device_timer_id id, int para m_dma_count = CHARACTERS_PER_DATA_ROW; m_dma_burst = DMA_BURST_COUNT ? (DMA_BURST_COUNT * 4) : CHARACTERS_PER_DATA_ROW; m_dma_delay = DMA_BURST_DELAY; - m_dmar = 1; + m_dmar = true; LOG("CRT9007 DMAR 1\n"); m_write_dmar(ASSERT_LINE); @@ -929,7 +935,7 @@ WRITE_LINE_MEMBER( crt9007_device::ack_w ) m_dma_timer->adjust(attotime::from_hz(clock())); } - m_ack = state; + m_ack = bool(state); } diff --git a/src/devices/video/crt9007.h b/src/devices/video/crt9007.h index 51f192c38e3..aa024d2c24e 100644 --- a/src/devices/video/crt9007.h +++ b/src/devices/video/crt9007.h @@ -197,11 +197,11 @@ private: //int m_sld; // DMA - int m_dmar; - int m_ack; - int m_dma_count; - int m_dma_burst; - int m_dma_delay; + bool m_dmar; + bool m_ack; + uint16_t m_dma_count; + uint16_t m_dma_burst; + uint8_t m_dma_delay; // timers emu_timer *m_vsync_timer;