diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-02-19 08:49:59 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-02-19 08:49:59 +0000 |
commit | 3accee936b5ca4b4ef419e30f0c7eb138d1891f2 (patch) | |
tree | 33d65de8cf8f98d884e1565188e429f5b50c4986 /src/mame/drivers/tryout.c | |
parent | 0bfe7ee72de2423855e9b3b5a930eeebefdf964c (diff) |
New module: devintrf.c/.h. Implements a generic device interface similar
to the sound and CPU interfaces. This is still a bit WIP, but works at
a fundamental level. Currently the only example of usage is in qix.c for
the MC6845 CRTC.
New module: mconfig.c/.h. Moved all machine_config and MDRV_* macros here,
out of driver.c/.h. Added MDRV macros for adding/removing/configuring
devices.
qix.c: Moved video part of machine driver to video/qix.c. Added MC6845
as a device in the machine driver. Removed explicit MC6845 initialization
from VIDEO_START in favor of simply retrieving the token from the device
interface code.
mc6845.c: Updated all callbacks to pass the mc6845_t * object. Updated
all drivers accordingly. Added a minimal device interface.
Deprecated the following constants because global constants that pretend
to document things but which are only guesses are dumb:
- DEFAULT_60HZ_VBLANK_DURATION
- DEFAULT_30HZ_VBLANK_DURATION
- DEFAULT_REAL_60HZ_VBLANK_DURATION
- DEFAULT_REAL_30HZ_VBLANK_DURATION
- DEFAULT_60HZ_3S_VBLANK_WATCHDOG
- DEFAULT_30HZ_3S_VBLANK_WATCHDOG
Updated all drivers to explicitly specify the equivalent bogus times.
Added comments for the "REAL" VBLANK durations to indicate that they are
not accurate.
Diffstat (limited to 'src/mame/drivers/tryout.c')
-rw-r--r-- | src/mame/drivers/tryout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/tryout.c b/src/mame/drivers/tryout.c index f9a2d1dd57d..3ff91e12aeb 100644 --- a/src/mame/drivers/tryout.c +++ b/src/mame/drivers/tryout.c @@ -199,7 +199,7 @@ static MACHINE_DRIVER_START( tryout ) MDRV_CPU_VBLANK_INT(nmi_line_pulse,16) /* ? */ MDRV_SCREEN_REFRESH_RATE(60) - MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) + MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) /* video hardware */ MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |