diff options
author | arbee <rb6502@users.noreply.github.com> | 2017-05-25 09:06:30 -0400 |
---|---|---|
committer | arbee <rb6502@users.noreply.github.com> | 2017-05-25 09:06:30 -0400 |
commit | 15be7d1d849fce443c064d57a0bd0d47c320dee2 (patch) | |
tree | f1123ddb4d564b6b704ed659ec85a5ae571bd1b1 | |
parent | 1617d0ab27fffeccc2eb8597954dc1677584df63 (diff) |
accomm: main screen turn on (nw)
-rw-r--r-- | src/mame/drivers/accomm.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mame/drivers/accomm.cpp b/src/mame/drivers/accomm.cpp index 35ccad5446b..7061862d00f 100644 --- a/src/mame/drivers/accomm.cpp +++ b/src/mame/drivers/accomm.cpp @@ -71,15 +71,16 @@ uint32_t accomm_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap uint8_t pixels; static const uint32_t palette[2] = { 0, 0xffffff }; uint8_t *vram = (uint8_t *)m_vram.target(); + uint32_t ula_addr = 0; vram += 0x3000; for (y = 0; y < 256; y++) { scanline = &bitmap.pix32(y); - for (x = 0; x < 640/8; x++) + for (x = 0; x < 80; x++) { - pixels = vram[(y * (640/8)) + x]; + pixels = vram[ula_addr + (x << 3)]; *scanline++ = palette[(pixels>>7)&1]; *scanline++ = palette[(pixels>>6)&1]; @@ -90,6 +91,12 @@ uint32_t accomm_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap *scanline++ = palette[(pixels>>1)&1]; *scanline++ = palette[(pixels&1)]; } + ula_addr++; + + if ((y & 7) == 7) + { + ula_addr += 0x278; + } } return 0; |