summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/twincobr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/twincobr.c')
-rw-r--r--src/mame/video/twincobr.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mame/video/twincobr.c b/src/mame/video/twincobr.c
index 9fb53c0dc08..cab60b44fe1 100644
--- a/src/mame/video/twincobr.c
+++ b/src/mame/video/twincobr.c
@@ -100,7 +100,6 @@ static void twincobr_create_tilemaps(running_machine &machine)
VIDEO_START_MEMBER(twincobr_state,toaplan0)
{
-
/* the video RAM is accessed via ports, it's not memory mapped */
m_txvideoram_size = 0x0800;
m_bgvideoram_size = 0x2000; /* banked two times 0x1000 */
@@ -179,54 +178,45 @@ void twincobr_flipscreen(running_machine &machine, int flip)
WRITE16_MEMBER(twincobr_state::twincobr_txoffs_w)
{
-
COMBINE_DATA(&m_txoffs);
m_txoffs %= m_txvideoram_size;
}
READ16_MEMBER(twincobr_state::twincobr_txram_r)
{
-
return m_txvideoram16[m_txoffs];
}
WRITE16_MEMBER(twincobr_state::twincobr_txram_w)
{
-
COMBINE_DATA(&m_txvideoram16[m_txoffs]);
m_tx_tilemap->mark_tile_dirty(m_txoffs);
}
WRITE16_MEMBER(twincobr_state::twincobr_bgoffs_w)
{
-
COMBINE_DATA(&m_bgoffs);
m_bgoffs %= (m_bgvideoram_size >> 1);
}
READ16_MEMBER(twincobr_state::twincobr_bgram_r)
{
-
return m_bgvideoram16[m_bgoffs+m_bg_ram_bank];
}
WRITE16_MEMBER(twincobr_state::twincobr_bgram_w)
{
-
COMBINE_DATA(&m_bgvideoram16[m_bgoffs+m_bg_ram_bank]);
m_bg_tilemap->mark_tile_dirty((m_bgoffs+m_bg_ram_bank));
}
WRITE16_MEMBER(twincobr_state::twincobr_fgoffs_w)
{
-
COMBINE_DATA(&m_fgoffs);
m_fgoffs %= m_fgvideoram_size;
}
READ16_MEMBER(twincobr_state::twincobr_fgram_r)
{
-
return m_fgvideoram16[m_fgoffs];
}
WRITE16_MEMBER(twincobr_state::twincobr_fgram_w)
{
-
COMBINE_DATA(&m_fgvideoram16[m_fgoffs]);
m_fg_tilemap->mark_tile_dirty(m_fgoffs);
}
@@ -234,7 +224,6 @@ WRITE16_MEMBER(twincobr_state::twincobr_fgram_w)
WRITE16_MEMBER(twincobr_state::twincobr_txscroll_w)
{
-
if (offset == 0) {
COMBINE_DATA(&m_txscrollx);
m_tx_tilemap->set_scrollx(0,(m_txscrollx+m_scroll_x) & 0x1ff);
@@ -247,7 +236,6 @@ WRITE16_MEMBER(twincobr_state::twincobr_txscroll_w)
WRITE16_MEMBER(twincobr_state::twincobr_bgscroll_w)
{
-
if (offset == 0) {
COMBINE_DATA(&m_bgscrollx);
m_bg_tilemap->set_scrollx(0,(m_bgscrollx+m_scroll_x) & 0x1ff);
@@ -260,7 +248,6 @@ WRITE16_MEMBER(twincobr_state::twincobr_bgscroll_w)
WRITE16_MEMBER(twincobr_state::twincobr_fgscroll_w)
{
-
if (offset == 0) {
COMBINE_DATA(&m_fgscrollx);
m_fg_tilemap->set_scrollx(0,(m_fgscrollx+m_scroll_x) & 0x1ff);