From 07c84169d69a18f59e5c391012e88222ba31123d Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Sat, 3 Dec 2011 16:47:41 +0000 Subject: [PATCH] Converted Beezer to proper vertical screen orientation, being originally a Galaxian conversion kit that's quite obvious as well [Angelo Salese] --- src/mame/drivers/beezer.c | 14 +++++++------- src/mame/drivers/cesclass.c | 1 - src/mame/video/beezer.c | 8 ++++---- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/mame/drivers/beezer.c b/src/mame/drivers/beezer.c index 055dbadbe05..ea9bb76d698 100644 --- a/src/mame/drivers/beezer.c +++ b/src/mame/drivers/beezer.c @@ -23,9 +23,9 @@ ADDRESS_MAP_END static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8 ) AM_RANGE(0x0000, 0x07ff) AM_RAM // RAM at 0D AM_RANGE(0x0800, 0x0fff) AM_RAM // optional RAM at 2D (can be rom here instead) - AM_RANGE(0x1000, 0x1007) AM_MIRROR(0x07F8) AM_DEVREADWRITE("custom", beezer_sh6840_r, beezer_sh6840_w) - AM_RANGE(0x1800, 0x180F) AM_MIRROR(0x07F0) AM_DEVREADWRITE_MODERN("via6522_1", via6522_device, read, write) - AM_RANGE(0x8000, 0x8003) AM_MIRROR(0x1FFC) AM_DEVWRITE("custom", beezer_sfxctrl_w) + AM_RANGE(0x1000, 0x1007) AM_MIRROR(0x07f8) AM_DEVREADWRITE("custom", beezer_sh6840_r, beezer_sh6840_w) + AM_RANGE(0x1800, 0x180F) AM_MIRROR(0x07f0) AM_DEVREADWRITE_MODERN("via6522_1", via6522_device, read, write) + AM_RANGE(0x8000, 0x8003) AM_MIRROR(0x1ffc) AM_DEVWRITE("custom", beezer_sfxctrl_w) //AM_RANGE(0xa000, 0xbfff) AM_ROM // ROM at 2D (can be ram here instead), unpopulated //AM_RANGE(0xc000, 0xdfff) AM_ROM // ROM at 4D, unpopulated AM_RANGE(0xe000, 0xffff) AM_ROM // ROM at 6D @@ -90,8 +90,8 @@ static MACHINE_CONFIG_START( beezer, beezer_state ) MCFG_SCREEN_REFRESH_RATE(60) MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) - MCFG_SCREEN_SIZE(256, 384) - MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 16, 303) + MCFG_SCREEN_SIZE(384, 256) + MCFG_SCREEN_VISIBLE_AREA(16, 304-1, 0, 240-1) // 288 x 240, correct? MCFG_SCREEN_UPDATE(beezer) MCFG_PALETTE_LENGTH(16) @@ -159,5 +159,5 @@ ROM_START( beezer1 ) ROM_LOAD( "e1.cpu", 0x100, 0x0100, CRC(3c775c5e) SHA1(ac86f45938c0c9d5fec1245bf86718442baf445b) ) ROM_END -GAME( 1982, beezer, 0, beezer, beezer, beezer, ORIENTATION_FLIP_X, "Tong Electronic", "Beezer (set 1)", GAME_IMPERFECT_SOUND ) -GAME( 1982, beezer1, beezer, beezer, beezer, beezer, ORIENTATION_FLIP_X, "Tong Electronic", "Beezer (set 2)", GAME_IMPERFECT_SOUND ) +GAME( 1982, beezer, 0, beezer, beezer, beezer, ROT90, "Tong Electronic", "Beezer (set 1)", GAME_IMPERFECT_SOUND ) +GAME( 1982, beezer1, beezer, beezer, beezer, beezer, ROT90, "Tong Electronic", "Beezer (set 2)", GAME_IMPERFECT_SOUND ) diff --git a/src/mame/drivers/cesclass.c b/src/mame/drivers/cesclass.c index ae705ee329e..27d0105080e 100644 --- a/src/mame/drivers/cesclass.c +++ b/src/mame/drivers/cesclass.c @@ -2,7 +2,6 @@ CES Classic wall games - Pinball system? */ #define ADDRESS_MAP_MODERN diff --git a/src/mame/video/beezer.c b/src/mame/video/beezer.c index d2688ade2a0..e453a0c18cd 100644 --- a/src/mame/video/beezer.c +++ b/src/mame/video/beezer.c @@ -23,11 +23,11 @@ SCREEN_UPDATE( beezer ) UINT8 *videoram = state->m_videoram; int x,y; - for (y = cliprect->min_y; y <= cliprect->max_y; y+=2) - for (x = cliprect->min_x; x <= cliprect->max_x; x++) + for (y = cliprect->min_y; y <= cliprect->max_y; y++) + for (x = cliprect->min_x; x <= cliprect->max_x; x+=2) { - *BITMAP_ADDR16(bitmap, y+1, x) = videoram[0x80*y+x] & 0x0f; - *BITMAP_ADDR16(bitmap, y, x) = videoram[0x80*y+x] >> 4; + *BITMAP_ADDR16(bitmap, y, x+1) = videoram[0x80*x+y] & 0x0f; + *BITMAP_ADDR16(bitmap, y, x+0) = videoram[0x80*x+y] >> 4; } return 0;