summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/astrcorp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/astrcorp.c')
-rw-r--r--src/mame/drivers/astrcorp.c30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/mame/drivers/astrcorp.c b/src/mame/drivers/astrcorp.c
index cd9d9f9f772..a8d8e49b1b7 100644
--- a/src/mame/drivers/astrcorp.c
+++ b/src/mame/drivers/astrcorp.c
@@ -465,6 +465,18 @@ GFXDECODE_END
static const UINT16 showhand_default_eeprom[15] = {0x0001,0x0007,0x000a,0x0003,0x0000,0x0009,0x0003,0x0000,0x0002,0x0001,0x0000,0x0000,0x0000,0x0000,0x0000};
+
+/*
+TODO: understand if later hardware uses different parameters (XTAL is almost surely NOT 20 MHz so ...).
+*/
+#define ASTROCORP_PIXEL_CLOCK XTAL_20MHz/2
+#define ASTROCORP_HTOTAL 651
+#define ASTROCORP_HBEND 0
+//#define ASTROCORP_HBSTART 320
+#define ASTROCORP_VTOTAL 261
+#define ASTROCORP_VBEND 0
+#define ASTROCORP_VBSTART 240
+
static MACHINE_CONFIG_START( showhand, astrocorp_state )
/* basic machine hardware */
@@ -478,10 +490,11 @@ static MACHINE_CONFIG_START( showhand, astrocorp_state )
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_REFRESH_RATE(58.846) // measured on pcb
- MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
- MCFG_SCREEN_SIZE(320, 240)
- MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
+// MCFG_SCREEN_REFRESH_RATE(58.846) // measured on pcb
+// MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
+// MCFG_SCREEN_SIZE(320, 240)
+// MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 240-1)
+ MCFG_SCREEN_RAW_PARAMS(ASTROCORP_PIXEL_CLOCK,ASTROCORP_HTOTAL,ASTROCORP_HBEND,320,ASTROCORP_VTOTAL,ASTROCORP_VBEND,ASTROCORP_VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(astrocorp_state, screen_update_astrocorp)
MCFG_SCREEN_PALETTE("palette")
@@ -531,10 +544,11 @@ static MACHINE_CONFIG_START( skilldrp, astrocorp_state )
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
- MCFG_SCREEN_REFRESH_RATE(58.846)
- MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
- MCFG_SCREEN_SIZE(0x200, 0x100)
- MCFG_SCREEN_VISIBLE_AREA(0, 0x200-1, 0, 0xf0-1)
+// MCFG_SCREEN_REFRESH_RATE(58.846)
+// MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
+// MCFG_SCREEN_SIZE(0x200, 0x100)
+// MCFG_SCREEN_VISIBLE_AREA(0, 0x200-1, 0, 0xf0-1)
+ MCFG_SCREEN_RAW_PARAMS(ASTROCORP_PIXEL_CLOCK,ASTROCORP_HTOTAL,ASTROCORP_HBEND,512,ASTROCORP_VTOTAL,ASTROCORP_VBEND,ASTROCORP_VBSTART)
MCFG_SCREEN_UPDATE_DRIVER(astrocorp_state, screen_update_astrocorp)
MCFG_SCREEN_PALETTE("palette")