src/mess/machine/ti99/videowrp.h
| r14052 | r14053 | |
| 21 | 21 | typedef struct _ti99_video_config |
| 22 | 22 | { |
| 23 | 23 | int chip; |
| 24 | | void (*callback)(device_t *, v99x8_device &, int); |
| 25 | 24 | |
| 26 | 25 | } ti99_video_config; |
| 27 | 26 | |
| r14052 | r14053 | |
| 56 | 55 | |
| 57 | 56 | #define MCFG_TI_V9938_ADD(_tag, _rate, _screen, _blank, _x, _y, _int) \ |
| 58 | 57 | MCFG_DEVICE_ADD(_tag, TIVIDEO, 0) \ |
| 59 | | MCFG_DEVICE_CONFIG_DATAPTR(ti99_video_config, callback, _int) \ |
| 60 | 58 | MCFG_DEVICE_CONFIG_DATA32(ti99_video_config, chip, TI_V9938) \ |
| 61 | 59 | MCFG_V9938_ADD(_tag "_v9938", _screen, 0x20000) \ |
| 62 | 60 | MCFG_V99X8_INTERRUPT_CALLBACK_STATIC(_int) \ |
src/mess/machine/ti99/tiboard.c
| r14052 | r14053 | |
| 125 | 125 | /* |
| 126 | 126 | set the state of int2 (called by the tms9928 core) |
| 127 | 127 | */ |
| 128 | | void tms9901_set_int2(device_t *, v99x8_device &tms, int state) |
| 128 | void tms9901_set_int2(device_t *device, int state) |
| 129 | 129 | { |
| 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 | */ |
| 138 | void tms9901_set_int2_v9938(device_t *, v99x8_device &tms, int state) |
| 139 | { |
| 130 | 140 | tms9901_set_single_int(tms.machine().device("tms9901"), 2, state); |
| 131 | 141 | } |
| 132 | 142 | |
| 143 | |
| 133 | 144 | /* |
| 134 | 145 | Called by the 9901 core whenever the state of INTREQ and IC0-3 changes |
| 135 | 146 | */ |
src/mess/machine/ti99/tiboard.h
| r14052 | r14053 | |
| 4 | 4 | #include "machine/tms9901.h" |
| 5 | 5 | #include "video/v9938.h" |
| 6 | 6 | |
| 7 | | void tms9901_set_int2(device_t *, v99x8_device &tms, int state); |
| 7 | void tms9901_set_int2(device_t *device, int state); |
| 8 | void tms9901_set_int2_v9938(device_t *, v99x8_device &tms, int state); |
| 8 | 9 | |
| 9 | 10 | extern const tms9901_interface tms9901_wiring_ti99_4; |
| 10 | 11 | extern const tms9901_interface tms9901_wiring_ti99_4a; |
src/mess/drivers/ti99_4x.c
| r14052 | r14053 | |
| 775 | 775 | |
| 776 | 776 | static WRITE_LINE_DEVICE_HANDLER(set_int2) |
| 777 | 777 | { |
| 778 | | tms9901_set_int2( NULL, *device->machine().device<v9938_device>("video_v9938"), state ); |
| 778 | tms9901_set_int2(device->machine().device("ti_board"), state ); |
| 779 | 779 | } |
| 780 | 780 | |
| 781 | 781 | static TMS9928A_INTERFACE(ti99_4_tms9928a_interface) |
| r14052 | r14053 | |
| 1027 | 1027 | /* FIXME: (MZ) Lowered the screen rate to 30 Hz. This is a quick hack to |
| 1028 | 1028 | restore normal video speed for V9938-based systems until the V9938 implementation |
| 1029 | 1029 | 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) |
| 1031 | 1031 | |
| 1032 | 1032 | MCFG_GFXDECODE(ti99b) |
| 1033 | 1033 | |