mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +03:00
-midtunit: Clarify the ROM offset values in metadata by splitting into byte and bit offsets, nw
This commit is contained in:
parent
047cfa0b52
commit
5f5a49523a
@ -1042,10 +1042,13 @@ void midtunit_video_device::log_bitmap(int command, int bpp, bool Skip)
|
|||||||
writer.Key("MemoryAddress");
|
writer.Key("MemoryAddress");
|
||||||
writer.String(hex_buf);
|
writer.String(hex_buf);
|
||||||
|
|
||||||
sprintf(hex_buf, "0x%08x", m_dma_state.offset);
|
sprintf(hex_buf, "0x%08x", m_dma_state.offset >> 3);
|
||||||
writer.Key("ROMSourceOffset");
|
writer.Key("ROMSourceOffsetByte");
|
||||||
writer.String(hex_buf);
|
writer.String(hex_buf);
|
||||||
|
|
||||||
|
writer.Key("ROMSourceOffsetBit");
|
||||||
|
writer.Int(m_dma_state.offset & 7);
|
||||||
|
|
||||||
writer.Key("Size");
|
writer.Key("Size");
|
||||||
writer.StartArray();
|
writer.StartArray();
|
||||||
writer.Int(m_dma_state.width);
|
writer.Int(m_dma_state.width);
|
||||||
|
Loading…
Reference in New Issue
Block a user