diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2019-05-04 22:09:31 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2019-05-04 22:09:31 -0400 |
commit | 1a5e8e06e169a13bda987d7a998038fb92ff46ef (patch) | |
tree | a4bc1244d4dd5cb86502422aaa94dee430c3da49 | |
parent | 0492f88c9995484ed9e59fffd9c9c4826c38696a (diff) |
z100: Mask video RAM addresses when rendering as well (nw)
-rw-r--r-- | src/mame/drivers/z100.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mame/drivers/z100.cpp b/src/mame/drivers/z100.cpp index 19ed0605dab..bdaaee47aaa 100644 --- a/src/mame/drivers/z100.cpp +++ b/src/mame/drivers/z100.cpp @@ -253,6 +253,7 @@ void z100_state::video_start() MC6845_UPDATE_ROW(z100_state::update_row) { uint32_t *const pix = &bitmap.pix32(y); + const uint16_t amask = m_vram_config->read() ? 0xfff : 0x7ff; for (int x = 0; x < x_count; x++) { @@ -266,7 +267,7 @@ MC6845_UPDATE_ROW(z100_state::update_row) else { for (int i = 0; i < 3; i++) - dot |= ((m_gvram[((x + ma) & 0xfff) << 4 | (ra & 0xf) | (0x10000*i)] >> (7-xi)) & 1) << i; // b, r, g + dot |= ((m_gvram[((x + ma) & amask) << 4 | (ra & 0xf) | (0x10000*i)] >> (7-xi)) & 1) << i; // b, r, g if (x == cursor_x) dot ^= 7; |