diff options
author | angelosa <salese_corp_ltd@email.it> | 2016-02-09 21:18:43 +0100 |
---|---|---|
committer | angelosa <salese_corp_ltd@email.it> | 2016-02-09 22:34:47 +0100 |
commit | 66ba72bc9ef1ec2ce4ae9f18b975ac378735ba1a (patch) | |
tree | 00400eb7ce077a1968132dface9f1fa86cab613a | |
parent | f7fc08eb36d106e0430114b8ba283b75c06360bb (diff) |
Revert set params, nw
-rw-r--r-- | src/devices/video/jangou_blitter.cpp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/src/devices/video/jangou_blitter.cpp b/src/devices/video/jangou_blitter.cpp index 9df1a351a40..89d643fe5bb 100644 --- a/src/devices/video/jangou_blitter.cpp +++ b/src/devices/video/jangou_blitter.cpp @@ -139,9 +139,11 @@ WRITE8_MEMBER( jangou_blitter_device::blitter_process_w ) int drawx = (x + xcount) & 0xff; int drawy = (y + ycount) & 0xff; UINT8 dat = gfx_nibble(src + count); - UINT8 cur_pen = m_pen_data[(dat & 0x0f) >> 0]; - - if (cur_pen != 0) + UINT8 cur_pen = m_pen_data[dat & 0x0f]; + + //dat = cur_pen_lo | (cur_pen_hi << 4); + + if ((cur_pen & 0xff) != 0) plot_gfx_pixel(cur_pen, drawx, drawy); if (!flipx) @@ -151,14 +153,15 @@ WRITE8_MEMBER( jangou_blitter_device::blitter_process_w ) } } - UINT32 new_src = src + count; + //UINT32 new_src = src + count; // update source and height after blitter operation - m_blit_data[0] = new_src & 0xfe; - m_blit_data[1] = new_src >> 8; - m_blit_data[5] = 0; - m_blit_data[6] = new_src >> 16; - m_bltflip = false; + // TODO: Jangou doesn't agree with this, later HW? + //m_blit_data[0] = new_src & 0xfe; + //m_blit_data[1] = new_src >> 8; + //m_blit_data[5] = 0; + //m_blit_data[6] = new_src >> 16; + //m_bltflip = false; } } @@ -179,8 +182,8 @@ WRITE8_MEMBER( jangou_blitter_device::blitter_alt_process_w) WRITE8_MEMBER( jangou_blitter_device::blitter_vregs_w) { - // printf("%02x %02x\n", offset, data); - m_pen_data[offset] = data & 0xf; + // bit 5 set by Jangou, left-over? + m_pen_data[offset] = data & 0x0f; } WRITE8_MEMBER( jangou_blitter_device::blitter_bltflip_w) |