summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author MooglyGuy <therealmogminer@gmail.com>2019-07-07 07:01:16 +0200
committer MooglyGuy <therealmogminer@gmail.com>2019-07-07 07:01:16 +0200
commit5f5a49523ac9be2e758f6d3b6de1e24c0ca06361 (patch)
tree23e9c79290add017719a6fdf9491482f6563ca09
parent047cfa0b52192240f6adf714f335d6feffa1b1c4 (diff)
-midtunit: Clarify the ROM offset values in metadata by splitting into byte and bit offsets, nw
-rw-r--r--src/mame/video/midtunit.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/video/midtunit.cpp b/src/mame/video/midtunit.cpp
index 791821f1f25..b4cb98abacf 100644
--- a/src/mame/video/midtunit.cpp
+++ b/src/mame/video/midtunit.cpp
@@ -1042,10 +1042,13 @@ void midtunit_video_device::log_bitmap(int command, int bpp, bool Skip)
writer.Key("MemoryAddress");
writer.String(hex_buf);
- sprintf(hex_buf, "0x%08x", m_dma_state.offset);
- writer.Key("ROMSourceOffset");
+ sprintf(hex_buf, "0x%08x", m_dma_state.offset >> 3);
+ writer.Key("ROMSourceOffsetByte");
writer.String(hex_buf);
+ writer.Key("ROMSourceOffsetBit");
+ writer.Int(m_dma_state.offset & 7);
+
writer.Key("Size");
writer.StartArray();
writer.Int(m_dma_state.width);