src/mess/machine/coco.c
| r2646 | r2647 | |
| 100 | 100 | #include "devices/cococart.h" |
| 101 | 101 | |
| 102 | 102 | |
| 103 | /*************************************************************************** |
| 104 | PARAMETERS |
| 105 | ***************************************************************************/ |
| 106 | |
| 107 | #define JOYSTICK_MUX_DELAY ATTOTIME_IN_USEC(16) |
| 108 | |
| 109 | |
| 110 | |
| 111 | /*************************************************************************** |
| 112 | LOCAL VARIABLES / PROTOTYPES |
| 113 | ***************************************************************************/ |
| 114 | |
| 103 | 115 | /*common vars/calls */ |
| 104 | 116 | static UINT8 *coco_rom; |
| 105 | 117 | static int dclg_state, dclg_output_h, dclg_output_v, dclg_timer; |
| r2646 | r2647 | |
| 387 | 399 | |
| 388 | 400 | |
| 389 | 401 | /*************************************************************************** |
| 402 | IMPLEMENTATION |
| 403 | ***************************************************************************/ |
| 404 | |
| 405 | /*************************************************************************** |
| 390 | 406 | PAK files |
| 391 | 407 | |
| 392 | 408 | PAK files were originally for storing Program PAKs, but the file format has |
| r2646 | r2647 | |
| 1240 | 1256 | |
| 1241 | 1257 | static WRITE8_HANDLER ( d_pia0_ca2_w ) |
| 1242 | 1258 | { |
| 1243 | | timer_adjust_oneshot(mux_sel1_timer, ATTOTIME_IN_USEC(16), data); |
| 1259 | timer_adjust_oneshot(mux_sel1_timer, JOYSTICK_MUX_DELAY, data); |
| 1244 | 1260 | } |
| 1245 | 1261 | |
| 1246 | 1262 | static TIMER_CALLBACK(coco_update_sel1_timerproc) |
| 1247 | 1263 | { |
| 1248 | | mux_sel1 = param;; |
| 1264 | mux_sel1 = param; |
| 1249 | 1265 | (*update_keyboard)(machine); |
| 1250 | 1266 | soundmux_update(); |
| 1251 | 1267 | } |
| 1252 | 1268 | |
| 1253 | 1269 | static WRITE8_HANDLER ( d_pia0_cb2_w ) |
| 1254 | 1270 | { |
| 1255 | | timer_adjust_oneshot(mux_sel2_timer, ATTOTIME_IN_USEC(16), data); |
| 1271 | timer_adjust_oneshot(mux_sel2_timer, JOYSTICK_MUX_DELAY, data); |
| 1256 | 1272 | } |
| 1257 | 1273 | |
| 1258 | 1274 | static TIMER_CALLBACK(coco_update_sel2_timerproc) |