From 63f9a01f8c5d43b9cfe68c2d401a84647d19c10e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 29 Jun 2016 08:34:30 +0200 Subject: Cleanup and version bump --- src/mame/video/chihiro.cpp | 2 +- src/mame/video/divebomb.cpp | 172 +++++++++++++++++++++--------------------- src/mame/video/exerion.cpp | 4 +- src/mame/video/gotya.cpp | 6 +- src/mame/video/homedata.cpp | 10 +-- src/mame/video/megasys1.cpp | 2 +- src/mame/video/model3.cpp | 82 ++++++++++---------- src/mame/video/namconb1.cpp | 4 +- src/mame/video/namcos2.cpp | 2 +- src/mame/video/powervr2.cpp | 2 +- src/mame/video/seibu_crtc.cpp | 2 +- src/mame/video/vtvideo.cpp | 6 +- 12 files changed, 147 insertions(+), 147 deletions(-) (limited to 'src/mame/video') diff --git a/src/mame/video/chihiro.cpp b/src/mame/video/chihiro.cpp index 7ce95c67ff9..48cca5d119c 100644 --- a/src/mame/video/chihiro.cpp +++ b/src/mame/video/chihiro.cpp @@ -4617,7 +4617,7 @@ WRITE32_MEMBER(nv2a_renderer::geforce_w) //printf("dmaget %08X dmaput %08X\n\r",*dmaget,*dmaput); if (((*dmaput == 0x048cf000) && (*dmaget == 0x07f4d000)) || // only for outr2 ((*dmaput == 0x07dca000) && (*dmaget == 0x07f4d000))) // only for crtaxihr - { + { *dmaget = *dmaput; puller_waiting = 0; puller_timer->enable(false); diff --git a/src/mame/video/divebomb.cpp b/src/mame/video/divebomb.cpp index 275ef64e173..1da5769aa31 100644 --- a/src/mame/video/divebomb.cpp +++ b/src/mame/video/divebomb.cpp @@ -20,13 +20,13 @@ TILE_GET_INFO_MEMBER(divebomb_state::get_fg_tile_info) { - UINT32 code = m_fgram[tile_index + 0x000]; - UINT32 attr = m_fgram[tile_index + 0x400]; - UINT32 colour = attr >> 4; + UINT32 code = m_fgram[tile_index + 0x000]; + UINT32 attr = m_fgram[tile_index + 0x400]; + UINT32 colour = attr >> 4; - code |= (attr & 0x3) << 8; + code |= (attr & 0x3) << 8; - SET_TILE_INFO_MEMBER(0, code, colour, 0); + SET_TILE_INFO_MEMBER(0, code, colour, 0); } @@ -39,15 +39,15 @@ TILE_GET_INFO_MEMBER(divebomb_state::get_fg_tile_info) K051316_CB_MEMBER(divebomb_state::zoom_callback_1) { - *code |= (*color & 0x03) << 8; - *color = 0 + ((roz_pal >> 4) & 3); + *code |= (*color & 0x03) << 8; + *color = 0 + ((roz_pal >> 4) & 3); } K051316_CB_MEMBER(divebomb_state::zoom_callback_2) { - *code |= (*color & 0x03) << 8; - *color = 4 + (roz_pal & 3); + *code |= (*color & 0x03) << 8; + *color = 4 + (roz_pal & 3); } @@ -60,47 +60,47 @@ K051316_CB_MEMBER(divebomb_state::zoom_callback_2) WRITE8_MEMBER(divebomb_state::fgram_w) { - m_fgram[offset] = data; - m_fg_tilemap->mark_tile_dirty(offset & 0x3ff); + m_fgram[offset] = data; + m_fg_tilemap->mark_tile_dirty(offset & 0x3ff); } WRITE8_MEMBER(divebomb_state::rozcpu_wrap1_enable_w) { - roz1_wrap = !(data & 1); + roz1_wrap = !(data & 1); } WRITE8_MEMBER(divebomb_state::rozcpu_enable1_w) { - roz1_enable = !(data & 1); + roz1_enable = !(data & 1); } WRITE8_MEMBER(divebomb_state::rozcpu_enable2_w) { - roz2_enable = !(data & 1); + roz2_enable = !(data & 1); } WRITE8_MEMBER(divebomb_state::rozcpu_wrap2_enable_w) { - roz2_wrap = !(data & 1); + roz2_wrap = !(data & 1); } WRITE8_MEMBER(divebomb_state::rozcpu_pal_w) { - //.... ..xx K051316 1 palette select - //..xx .... K051316 2 palette select - - roz_pal = data; - - m_k051316_2->mark_tmap_dirty(); - m_k051316_1->mark_tmap_dirty(); - - if (data & 0xcc) - logerror("rozcpu_port50_w %02x\n", data); + //.... ..xx K051316 1 palette select + //..xx .... K051316 2 palette select + + roz_pal = data; + + m_k051316_2->mark_tmap_dirty(); + m_k051316_1->mark_tmap_dirty(); + + if (data & 0xcc) + logerror("rozcpu_port50_w %02x\n", data); } @@ -113,50 +113,50 @@ WRITE8_MEMBER(divebomb_state::rozcpu_pal_w) void divebomb_state::decode_proms(const UINT8 * rgn, int size, int index, bool inv) { - static const int resistances[4] = { 2000, 1000, 470, 220 }; - - double rweights[4], gweights[4], bweights[4]; - - /* compute the color output resistor weights */ - compute_resistor_weights(0, 255, -1.0, - 4, resistances, rweights, 0, 0, - 4, resistances, gweights, 0, 0, - 4, resistances, bweights, 0, 0); - - /* create a lookup table for the palette */ - for (UINT32 i = 0; i < size; ++i) - { - UINT32 rdata = rgn[i + size*2] & 0x0f; - UINT32 r = combine_4_weights(rweights, BIT(rdata, 0), BIT(rdata, 1), BIT(rdata, 2), BIT(rdata, 3)); - - UINT32 gdata = rgn[i + size] & 0x0f; - UINT32 g = combine_4_weights(gweights, BIT(gdata, 0), BIT(gdata, 1), BIT(gdata, 2), BIT(gdata, 3)); - - UINT32 bdata = rgn[i] & 0x0f; - UINT32 b = combine_4_weights(bweights, BIT(bdata, 0), BIT(bdata, 1), BIT(bdata, 2), BIT(bdata, 3)); - - if (!inv) - m_palette->set_pen_color(index + i, rgb_t(r, g, b)); - else - m_palette->set_pen_color(index + (i ^ 0xff), rgb_t(r, g, b)); - } + static const int resistances[4] = { 2000, 1000, 470, 220 }; + + double rweights[4], gweights[4], bweights[4]; + + /* compute the color output resistor weights */ + compute_resistor_weights(0, 255, -1.0, + 4, resistances, rweights, 0, 0, + 4, resistances, gweights, 0, 0, + 4, resistances, bweights, 0, 0); + + /* create a lookup table for the palette */ + for (UINT32 i = 0; i < size; ++i) + { + UINT32 rdata = rgn[i + size*2] & 0x0f; + UINT32 r = combine_4_weights(rweights, BIT(rdata, 0), BIT(rdata, 1), BIT(rdata, 2), BIT(rdata, 3)); + + UINT32 gdata = rgn[i + size] & 0x0f; + UINT32 g = combine_4_weights(gweights, BIT(gdata, 0), BIT(gdata, 1), BIT(gdata, 2), BIT(gdata, 3)); + + UINT32 bdata = rgn[i] & 0x0f; + UINT32 b = combine_4_weights(bweights, BIT(bdata, 0), BIT(bdata, 1), BIT(bdata, 2), BIT(bdata, 3)); + + if (!inv) + m_palette->set_pen_color(index + i, rgb_t(r, g, b)); + else + m_palette->set_pen_color(index + (i ^ 0xff), rgb_t(r, g, b)); + } } PALETTE_INIT_MEMBER(divebomb_state, divebomb) { - decode_proms(memregion("spr_proms")->base(), 0x100, 0x400 + 0x400 + 0x400, false); - decode_proms(memregion("fg_proms")->base(), 0x400, 0x400 + 0x400, false); - decode_proms(memregion("k051316_1_pr")->base(), 0x400, 0, true); - decode_proms(memregion("k051316_2_pr")->base(), 0x400, 0x400, true); + decode_proms(memregion("spr_proms")->base(), 0x100, 0x400 + 0x400 + 0x400, false); + decode_proms(memregion("fg_proms")->base(), 0x400, 0x400 + 0x400, false); + decode_proms(memregion("k051316_1_pr")->base(), 0x400, 0, true); + decode_proms(memregion("k051316_2_pr")->base(), 0x400, 0x400, true); } VIDEO_START_MEMBER(divebomb_state,divebomb) { - m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(divebomb_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32); - m_fg_tilemap->set_transparent_pen(0); - m_fg_tilemap->set_scrolly(0, 16); + m_fg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(divebomb_state::get_fg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32); + m_fg_tilemap->set_transparent_pen(0); + m_fg_tilemap->set_scrolly(0, 16); } @@ -169,41 +169,41 @@ VIDEO_START_MEMBER(divebomb_state,divebomb) void divebomb_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect) { - const UINT8 *spriteram = m_spriteram; - - for (UINT32 i = 0; i < m_spriteram.bytes(); i += 4) - { - UINT32 sy = spriteram[i + 3]; - UINT32 sx = spriteram[i + 0]; - UINT32 code = spriteram[i + 2]; - UINT32 attr = spriteram[i + 1]; - - code += (attr & 0x0f) << 8; - - UINT32 colour = attr >> 4; - - m_gfxdecode->gfx(1)->transpen(bitmap, cliprect, code, colour, 0, 0, sx, sy, 0); - m_gfxdecode->gfx(1)->transpen(bitmap, cliprect, code, colour, 0, 0, sx, sy-256, 0); - } + const UINT8 *spriteram = m_spriteram; + + for (UINT32 i = 0; i < m_spriteram.bytes(); i += 4) + { + UINT32 sy = spriteram[i + 3]; + UINT32 sx = spriteram[i + 0]; + UINT32 code = spriteram[i + 2]; + UINT32 attr = spriteram[i + 1]; + + code += (attr & 0x0f) << 8; + + UINT32 colour = attr >> 4; + + m_gfxdecode->gfx(1)->transpen(bitmap, cliprect, code, colour, 0, 0, sx, sy, 0); + m_gfxdecode->gfx(1)->transpen(bitmap, cliprect, code, colour, 0, 0, sx, sy-256, 0); + } } UINT32 divebomb_state::screen_update_divebomb(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { - m_k051316_1->wraparound_enable(roz1_wrap); - m_k051316_2->wraparound_enable(roz2_wrap); + m_k051316_1->wraparound_enable(roz1_wrap); + m_k051316_2->wraparound_enable(roz2_wrap); + + bitmap.fill(m_palette->black_pen(), cliprect); - bitmap.fill(m_palette->black_pen(), cliprect); + if (roz2_enable) + m_k051316_2->zoom_draw(screen, bitmap, cliprect, 0, 0); - if (roz2_enable) - m_k051316_2->zoom_draw(screen, bitmap, cliprect, 0, 0); - - if (roz1_enable) - m_k051316_1->zoom_draw(screen, bitmap, cliprect, 0, 0); + if (roz1_enable) + m_k051316_1->zoom_draw(screen, bitmap, cliprect, 0, 0); - draw_sprites(bitmap, cliprect); + draw_sprites(bitmap, cliprect); - m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0); + m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0); - return 0; + return 0; } diff --git a/src/mame/video/exerion.cpp b/src/mame/video/exerion.cpp index c2d30a8daac..df90f829362 100644 --- a/src/mame/video/exerion.cpp +++ b/src/mame/video/exerion.cpp @@ -389,11 +389,11 @@ UINT32 exerion_state::screen_update_exerion(screen_device &screen, bitmap_ind16 code &= ~0x10, code2 |= 0x10; gfx->transmask(bitmap,cliprect, code2, color, xflip, yflip, x, y + gfx->height(), - m_palette->transpen_mask(*gfx, color, 0x10)); + m_palette->transpen_mask(*gfx, color, 0x10)); } gfx->transmask(bitmap,cliprect, code, color, xflip, yflip, x, y, - m_palette->transpen_mask(*gfx, color, 0x10)); + m_palette->transpen_mask(*gfx, color, 0x10)); if (doubled) i += 4; } diff --git a/src/mame/video/gotya.cpp b/src/mame/video/gotya.cpp index ca2070a70f1..54f549f8513 100644 --- a/src/mame/video/gotya.cpp +++ b/src/mame/video/gotya.cpp @@ -153,9 +153,9 @@ void gotya_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect m_gfxdecode->gfx(1)->transpen(bitmap,cliprect, - code, color, - flip_screen_x(), flip_screen_y(), - sx, sy, 0); + code, color, + flip_screen_x(), flip_screen_y(), + sx, sy, 0); } } diff --git a/src/mame/video/homedata.cpp b/src/mame/video/homedata.cpp index 355cf3411c7..a77e534e821 100644 --- a/src/mame/video/homedata.cpp +++ b/src/mame/video/homedata.cpp @@ -949,7 +949,7 @@ UINT32 homedata_state::screen_update_pteacher(screen_device &screen, bitmap_ind1 246 = 96 17 ef db (mjjoship) 35*8 = bc 0b ef f0 51*8 = a6 07 ef db (mjikaga) - 414 = b7 10 ef db (mjjoship, db becomes e8 after first loss) + 414 = b7 10 ef db (mjjoship, db becomes e8 after first loss) 54*8 = bc 07 ef e8 but in mjkinjas it's @@ -987,17 +987,17 @@ UINT32 homedata_state::screen_update_pteacher(screen_device &screen, bitmap_ind1 } else { - if (m_vreg[0x3] == 0xa6) + if (m_vreg[0x3] == 0xa6) { screen.set_visible_area(0*8, 51*8-1, 2*8, 30*8-1); scroll_low = 7 - (m_vreg[0x4] & 0x0f); } - else if (m_vreg[0x3] == 0xb7) + else if (m_vreg[0x3] == 0xb7) { screen.set_visible_area(0*8, 52*8-3, 2*8, 30*8-1); - scroll_low = 0; + scroll_low = 0; } - else + else { screen.set_visible_area(0*8, 54*8-1, 2*8, 30*8-1); scroll_low = 7 - (m_vreg[0x4] & 0x0f); diff --git a/src/mame/video/megasys1.cpp b/src/mame/video/megasys1.cpp index 35d9f95cc3e..0d422feb0f4 100644 --- a/src/mame/video/megasys1.cpp +++ b/src/mame/video/megasys1.cpp @@ -447,7 +447,7 @@ WRITE16_MEMBER(megasys1_state::megasys1_vregs_A_w) break; case 0x308/2 : if (!m_hardware_type_z) - { + { m_soundlatch->write(space,0,new_data,0xffff); m_audiocpu->set_input_line(4, HOLD_LINE); } diff --git a/src/mame/video/model3.cpp b/src/mame/video/model3.cpp index 28b3a5efe11..0113e5dadcc 100644 --- a/src/mame/video/model3.cpp +++ b/src/mame/video/model3.cpp @@ -711,20 +711,20 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw - Color table (is this featured in Model 3?) 0x00: xxxxxxxx xxxxxxxx xxxxxx-- -------- Viewport number - -------- -------- ------xx -------- Viewport select 0-3 - -------- -------- -------- x------- Display select - -------- -------- -------- -x------ Fix point centroid - -------- -------- -------- --x----- Viewport off + -------- -------- ------xx -------- Viewport select 0-3 + -------- -------- -------- x------- Display select + -------- -------- -------- -x------ Fix point centroid + -------- -------- -------- --x----- Viewport off -------- -------- -------- ---xx--- Viewport priority - -------- -------- -------- -----x-- "clr_xlator_tbl_sel" - -------- -------- -------- ------xx Node type + -------- -------- -------- -----x-- "clr_xlator_tbl_sel" + -------- -------- -------- ------xx Node type 0x01: -------x -------- -------- -------- Sibling null - -------- xxxxxxxx xxxxxxxx xxxxxxxx Sibling pointer + -------- xxxxxxxx xxxxxxxx xxxxxxxx Sibling pointer 0x02: -----x-- -------- -------- -------- Child is sibling table - -------x -------- -------- -------- Leaf node - -------- xxxxxxxx xxxxxxxx xxxxxxxx Child pointer + -------x -------- -------- -------- Leaf node + -------- xxxxxxxx xxxxxxxx xxxxxxxx Child pointer 0x03: "cota" (float) Affected by frustum angles and viewport size 0x04: Sun light vector X-component (float) @@ -763,7 +763,7 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw 0x1b: Copy of word 0x00 0x1c: xxxxxxxx xxxxxxxx -------- -------- "lj" - -------- -------- xxxxxxxx xxxxxxxx "li" + -------- -------- xxxxxxxx xxxxxxxx "li" 0x1d: -------- xxxxxxxx -------- -------- Spotlight Y size -------- -------- xxxxxxxx xxxxxxxx Spotlight Y position (13.3 fixed-point?) @@ -775,7 +775,7 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw 0x20: xxxxxxxx -------- -------- -------- ? -------- xxxxxxxx -------- -------- ? - -------- -------- -x------ -------- Parallel projection + -------- -------- -x------ -------- Parallel projection -------- -------- --xxx--- -------- Light RGB (RGB111?) -------- -------- -----xxx -------- Light RGB Fog (RGB111?) -------- -------- -------- xxxxxxxx Scroll Fog (0.8 fixed-point?) What is this??? @@ -789,15 +789,15 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw -------- -------- -------- xxxxxxxx Scroll attenuation (0.8 fixed-point) What is this??? 0x25: -------- xxxxxxxx -------- -------- Ambient fog - -------- -------- xxxxxxxx xxxxxxxx Fog offset + -------- -------- xxxxxxxx xxxxxxxx Fog offset 0x26: xxxxxxxx xxxxxxxx xxxxxxxx -------- Spot light - -------- -------- -------- x------- Clear viewport - -------- -------- -------- -x------ New sun parameters + -------- -------- -------- x------- Clear viewport + -------- -------- -------- -x------ New sun parameters 0x27: x------- -------- -------- -------- Valid spot light - -x------ -------- -------- -------- Pro 1000 dummy - -------- --xxxxxx xxxxxxxx xxxxxxxx "upgrade_wd_10" + -x------ -------- -------- -------- Pro 1000 dummy + -------- --xxxxxx xxxxxxxx xxxxxxxx "upgrade_wd_10" 0x28: Fog layer altitude (float) @@ -806,7 +806,7 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw 0x2a: Bottom fog density (float) 0x2b: Near clipping plane (float) - + 0x2c: Far clipping plane (float) 0x2d: Pfog offset top @@ -851,22 +851,22 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw Instance Node? 0x00: x------- -------- -------- -------- Is UF ref - -x------ -------- -------- -------- Is 3D model - --x----- -------- -------- -------- Is point - ---x---- -------- -------- -------- Is point ref - ----x--- -------- -------- -------- Is animation - -----x-- -------- -------- -------- Is billboard - ------x- -------- -------- -------- Child is billboard - -------x -------- -------- -------- Extra child pointer needed - -------- -----xxx xxxxxx-- -------- Node ID - - -------- -------- -------- x------- Reset matrix - -------- -------- -------- -x------ Use child pointer - -------- -------- -------- --x----- Use sibling pointer - -------- -------- -------- ---x---- No matrix - -------- -------- -------- ----x--- Indirect child - -------- -------- -------- -----x-- Valid color table - -------- -------- -------- ------xx Node type (0 = viewport, 1 = root node, 2 = culling node) + -x------ -------- -------- -------- Is 3D model + --x----- -------- -------- -------- Is point + ---x---- -------- -------- -------- Is point ref + ----x--- -------- -------- -------- Is animation + -----x-- -------- -------- -------- Is billboard + ------x- -------- -------- -------- Child is billboard + -------x -------- -------- -------- Extra child pointer needed + -------- -----xxx xxxxxx-- -------- Node ID + + -------- -------- -------- x------- Reset matrix + -------- -------- -------- -x------ Use child pointer + -------- -------- -------- --x----- Use sibling pointer + -------- -------- -------- ---x---- No matrix + -------- -------- -------- ----x--- Indirect child + -------- -------- -------- -----x-- Valid color table + -------- -------- -------- ------xx Node type (0 = viewport, 1 = root node, 2 = culling node) 0x01,0x02 only present on Step 2+ @@ -885,14 +885,14 @@ cached_texture *model3_state::get_texture(int page, int texx, int texy, int texw 0x06: Translation Z coordinate 0x07: xxxx---- -------- -------- -------- Color table address 2 - -----x-- -------- -------- -------- Sibling table - ------x- -------- -------- -------- Point - -------x -------- -------- -------- Leaf node - -------- xxxxxxxx xxxxxxxx xxxxxxxx Child pointer - - 0x08: xxxxxxx- -------- -------- -------- Color table address 3 - -------x -------- -------- -------- Null sibling - -------- xxxxxxxx xxxxxxxx xxxxxxxx Sibling pointer + -----x-- -------- -------- -------- Sibling table + ------x- -------- -------- -------- Point + -------x -------- -------- -------- Leaf node + -------- xxxxxxxx xxxxxxxx xxxxxxxx Child pointer + + 0x08: xxxxxxx- -------- -------- -------- Color table address 3 + -------x -------- -------- -------- Null sibling + -------- xxxxxxxx xxxxxxxx xxxxxxxx Sibling pointer 0x09: xxxxxxxx xxxxxxxx -------- -------- Blend radius -------- -------- xxxxxxxx xxxxxxxx Culling radius diff --git a/src/mame/video/namconb1.cpp b/src/mame/video/namconb1.cpp index 20e6a501a08..b18246ec376 100644 --- a/src/mame/video/namconb1.cpp +++ b/src/mame/video/namconb1.cpp @@ -130,7 +130,7 @@ VIDEO_START_MEMBER(namconb1_state,namconb1) { namco_tilemap_init(NAMCONB1_TILEGFX, memregion(NAMCONB1_TILEMASKREGION)->base(), NB1TilemapCB ); c355_obj_init(NAMCONB1_SPRITEGFX,0x0,namcos2_shared_state::c355_obj_code2tile_delegate(FUNC(namconb1_state::NB1objcode2tile), this)); - + save_item(NAME(m_tilemap_tile_bank)); } /* namconb1 */ @@ -189,6 +189,6 @@ VIDEO_START_MEMBER(namconb1_state,namconb2) namco_tilemap_init(NAMCONB1_TILEGFX, memregion(NAMCONB1_TILEMASKREGION)->base(), NB2TilemapCB ); c355_obj_init(NAMCONB1_SPRITEGFX,0x0,namcos2_shared_state::c355_obj_code2tile_delegate(FUNC(namconb1_state::NB2objcode2tile), this)); c169_roz_init(NAMCONB1_ROTGFX,NAMCONB1_ROTMASKREGION); - + save_item(NAME(m_tilemap_tile_bank)); } /* namconb2_vh_start */ diff --git a/src/mame/video/namcos2.cpp b/src/mame/video/namcos2.cpp index 21e1979caf0..89986aea6fe 100644 --- a/src/mame/video/namcos2.cpp +++ b/src/mame/video/namcos2.cpp @@ -294,7 +294,7 @@ WRITE16_MEMBER( namcos2_state::rozram_word_w ) m_tilemap_roz->mark_tile_dirty(offset); //if( space.machine().input().code_pressed(KEYCODE_Q) ) //{ - // machine().debug_break(); + // machine().debug_break(); //} } diff --git a/src/mame/video/powervr2.cpp b/src/mame/video/powervr2.cpp index b2f05d94069..8e512a0f7e1 100644 --- a/src/mame/video/powervr2.cpp +++ b/src/mame/video/powervr2.cpp @@ -1024,7 +1024,7 @@ WRITE32_MEMBER( powervr2_device::startrender_w ) } // printf("ISP START %d %d\n",sanitycount,m_screen->vpos()); /* Fire ISP irq after a set amount of time TODO: timing of this */ - endofrender_timer_isp->adjust(state->m_maincpu->cycles_to_attotime(sanitycount*25 + 500000)); // hacky end of render delay for Capcom games, otherwise they works at ~1/10 speed + endofrender_timer_isp->adjust(state->m_maincpu->cycles_to_attotime(sanitycount*25 + 500000)); // hacky end of render delay for Capcom games, otherwise they works at ~1/10 speed break; } } diff --git a/src/mame/video/seibu_crtc.cpp b/src/mame/video/seibu_crtc.cpp index 511f3046ebf..99200dae945 100644 --- a/src/mame/video/seibu_crtc.cpp +++ b/src/mame/video/seibu_crtc.cpp @@ -21,7 +21,7 @@ Raiden later rev (probably the first game to use it) TODO: - Most registers are still a mystery; -- Get the proper Seibu chip ID number. +- Get the proper Seibu chip ID number. Kold found that a Raiden alt set has irq request pin from a chip named SEI0160, which might be our man. preliminary memory map: diff --git a/src/mame/video/vtvideo.cpp b/src/mame/video/vtvideo.cpp index cea29595dc2..1356efc70ca 100644 --- a/src/mame/video/vtvideo.cpp +++ b/src/mame/video/vtvideo.cpp @@ -249,15 +249,15 @@ WRITE8_MEMBER(vt100_video_device::dc012_w) printf("MHFU ___ENABLED___ %05x \n", space.device().safe_pc()); MHFU_FLAG = true; - MHFU_counter = 0; + MHFU_counter = 0; } if (!(data & 0x08)) { if (!(data & 0x04)) { - m_scroll_latch_valid = false; - m_scroll_latch = data & 0x03; // LSB is written first. + m_scroll_latch_valid = false; + m_scroll_latch = data & 0x03; // LSB is written first. } else // set MSB of scroll_latch { -- cgit v1.2.3