Previous 15994 Revisions Next

r14053 Sunday 15th January, 2012 at 23:16:15 UTC by Michael Zapf
ti99: Regression fix (tms9901_set_int2) [Michael Zapf] (no whatsnew)
[src/mess/drivers]ti99_4x.c ti99_8.c
[src/mess/machine/ti99]tiboard.c tiboard.h videowrp.h

src/mess/machine/ti99/videowrp.h
r14052r14053
2121typedef struct _ti99_video_config
2222{
2323   int                     chip;
24   void                  (*callback)(device_t *, v99x8_device &, int);
2524
2625} ti99_video_config;
2726
r14052r14053
5655
5756#define MCFG_TI_V9938_ADD(_tag, _rate, _screen, _blank, _x, _y, _int)      \
5857   MCFG_DEVICE_ADD(_tag, TIVIDEO, 0)                              \
59   MCFG_DEVICE_CONFIG_DATAPTR(ti99_video_config, callback, _int)         \
6058   MCFG_DEVICE_CONFIG_DATA32(ti99_video_config, chip, TI_V9938)         \
6159   MCFG_V9938_ADD(_tag "_v9938", _screen, 0x20000)                     \
6260   MCFG_V99X8_INTERRUPT_CALLBACK_STATIC(_int)                        \
src/mess/machine/ti99/tiboard.c
r14052r14053
125125/*
126126    set the state of int2 (called by the tms9928 core)
127127*/
128void tms9901_set_int2(device_t *, v99x8_device &tms, int state)
128void tms9901_set_int2(device_t *device, int state)
129129{
130   device_t *dev = device->machine().device("ti_board");
131   tiboard_state *board = get_safe_token(dev);
132   tms9901_set_single_int(board->tms9901, 2, state);
133}
134
135/*
136    set the state of int2 (called by the v9938 core)
137*/
138void tms9901_set_int2_v9938(device_t *, v99x8_device &tms, int state)
139{
130140   tms9901_set_single_int(tms.machine().device("tms9901"), 2, state);
131141}
132142
143
133144/*
134145    Called by the 9901 core whenever the state of INTREQ and IC0-3 changes
135146*/
src/mess/machine/ti99/tiboard.h
r14052r14053
44#include "machine/tms9901.h"
55#include "video/v9938.h"
66
7void tms9901_set_int2(device_t *, v99x8_device &tms, int state);
7void tms9901_set_int2(device_t *device, int state);
8void tms9901_set_int2_v9938(device_t *, v99x8_device &tms, int state);
89
910extern const tms9901_interface tms9901_wiring_ti99_4;
1011extern const tms9901_interface tms9901_wiring_ti99_4a;
src/mess/drivers/ti99_8.c
r14052r14053
509509
510510static WRITE_LINE_DEVICE_HANDLER(set_int2)
511511{
512   tms9901_set_int2( NULL, *device->machine().device<v9938_device>("video_v9938"), state );
512   tms9901_set_int2(device->machine().device("ti_board"), state );
513513}
514514
515515static TMS9928A_INTERFACE(ti99_8_tms9928a_interface)
src/mess/drivers/ti99_4x.c
r14052r14053
775775
776776static WRITE_LINE_DEVICE_HANDLER(set_int2)
777777{
778   tms9901_set_int2( NULL, *device->machine().device<v9938_device>("video_v9938"), state );
778   tms9901_set_int2(device->machine().device("ti_board"), state );
779779}
780780
781781static TMS9928A_INTERFACE(ti99_4_tms9928a_interface)
r14052r14053
10271027   /* FIXME: (MZ) Lowered the screen rate to 30 Hz. This is a quick hack to
10281028    restore normal video speed for V9938-based systems until the V9938 implementation
10291029    is properly fixed. */
1030   MCFG_TI_V9938_ADD("video", 30, "screen", 2500, 512+32, (212+28)*2, tms9901_set_int2)
1030   MCFG_TI_V9938_ADD("video", 30, "screen", 2500, 512+32, (212+28)*2, tms9901_set_int2_v9938)
10311031
10321032   MCFG_GFXDECODE(ti99b)
10331033

Previous 15994 Revisions Next


© 1998-2018 The MESS Team