summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/ddayjlc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/ddayjlc.cpp')
-rw-r--r--src/mame/drivers/ddayjlc.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/mame/drivers/ddayjlc.cpp b/src/mame/drivers/ddayjlc.cpp
index bc15ffe22cb..097021b99fa 100644
--- a/src/mame/drivers/ddayjlc.cpp
+++ b/src/mame/drivers/ddayjlc.cpp
@@ -6,13 +6,13 @@
driver by Pierpaolo Prazzoli, Tomasz Slanina and Angelo Salese
- TODO:
- - text colors most likely are hardwired but iirc hi score text has a different color? Needs a reference shot;
- - unused upper sprite color bank;
- - improve sound comms, sometimes BGM becomes silent;
- - hookup proper i8257 device;
- - identify & dump MCU;
-
+ TODO:
+ - text colors most likely are hardwired but iirc hi score text has a different color? Needs a reference shot;
+ - unused upper sprite color bank;
+ - improve sound comms, sometimes BGM becomes silent;
+ - hookup proper i8257 device;
+ - identify & dump MCU;
+
-------------------------------------------------------
Is it 1984 or 1987 game ?
There's text inside rom "1987.07 BY ELS"
@@ -112,7 +112,7 @@ protected:
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void video_start() override;
-
+
private:
/* memory pointers */
required_shared_ptr<uint8_t> m_mainram;
@@ -139,7 +139,7 @@ private:
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;
required_device<generic_latch_8_device> m_soundlatch;
-
+
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
void draw_foreground(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
@@ -174,7 +174,7 @@ void ddayjlc_state::video_start()
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(ddayjlc_state::get_tile_info_bg),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
m_fg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(ddayjlc_state::get_tile_info_fg),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
- m_bg_tilemap->set_transparent_pen(0);
+ m_bg_tilemap->set_transparent_pen(0);
m_fg_tilemap->set_transparent_pen(0);
}
@@ -184,7 +184,7 @@ void ddayjlc_state::video_start()
-xxx xxxx code lower offset
[2] x--- ---- X flip
--xx ---- code upper offset
- ---- xxxx color offset
+ ---- xxxx color offset
[3] xxxx xxxx X offset
***************************/
void ddayjlc_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect)
@@ -200,13 +200,13 @@ void ddayjlc_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect
uint8_t color = flags & 0xf;
code = (code & 0x7f) | ((flags & 0x30) << 3);
-
+
if (flip_screen())
{
x = 256 - 16 - x;
xflip ^= 1;
}
-
+
m_gfxdecode->gfx(0)->transpen(bitmap,cliprect, code, color, xflip, yflip, x, y, 0);
}
}
@@ -214,10 +214,10 @@ void ddayjlc_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect
void ddayjlc_state::draw_foreground(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
-
+
rectangle opaque_rect(cliprect.min_x, cliprect.min_x + 16, cliprect.min_y, cliprect.max_y);
m_fg_tilemap->draw(screen, bitmap, opaque_rect, TILEMAP_DRAW_OPAQUE, 0);
-
+
opaque_rect.min_x = cliprect.max_x - 16;
opaque_rect.max_x = cliprect.max_x;
m_fg_tilemap->draw(screen, bitmap, opaque_rect, TILEMAP_DRAW_OPAQUE, 0);
@@ -365,7 +365,7 @@ WRITE8_MEMBER(ddayjlc_state::i8257_LMSR_w)
int32_t dst = m_e00x_d[2][1] * 256 + m_e00x_d[2][0];
int32_t size = (m_e00x_d[1][1] * 256 + m_e00x_d[1][0]) & 0x3ff;
int32_t i;
-
+
size++; //??
for(i = 0; i < size; i++)
@@ -439,7 +439,7 @@ static INPUT_PORTS_START( ddayjlc )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED )
-
+
PORT_START("SYSTEM")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_START2 )
@@ -588,7 +588,7 @@ PALETTE_INIT_MEMBER(ddayjlc_state, ddayjlc)
palette.set_pen_color(i, rgb_t(r, g, b));
}
-
+
// text colors, almost likely hardwired
palette.set_pen_color(0x200, rgb_t(0x00, 0x00, 0x00));
palette.set_pen_color(0x201, rgb_t(0xff, 0x00, 0x00));