src/mess/video/vectrex.c
| r3749 | r3750 | |
| 321 | 321 | |
| 322 | 322 | *********************************************************************/ |
| 323 | 323 | |
| 324 | | static void vectrex_multiplexer(int mux) |
| 324 | static void vectrex_multiplexer(running_machine *machine, int mux) |
| 325 | 325 | { |
| 326 | 326 | timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &analog[mux], vectrex_via_out[PORTA], update_signal); |
| 327 | 327 | |
| r3749 | r3750 | |
| 378 | 378 | if (!(data & 0x1) && (vectrex_via_out[PORTB] & 0x1)) |
| 379 | 379 | { |
| 380 | 380 | /* MUX has been enabled */ |
| 381 | | timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, update_signal); |
| 381 | timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, update_signal); |
| 382 | 382 | } |
| 383 | 383 | } |
| 384 | 384 | else |
| r3749 | r3750 | |
| 402 | 402 | } |
| 403 | 403 | |
| 404 | 404 | if (!(data & 0x1) && (vectrex_via_out[PORTB] & 0x1)) |
| 405 | | vectrex_multiplexer ((data >> 1) & 0x3); |
| 405 | vectrex_multiplexer (space->machine, (data >> 1) & 0x3); |
| 406 | 406 | |
| 407 | 407 | vectrex_via_out[PORTB] = data; |
| 408 | | timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &ramp, data & 0x80, update_signal); |
| 408 | timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &ramp, data & 0x80, update_signal); |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | |
| r3749 | r3750 | |
| 413 | 413 | { |
| 414 | 414 | /* DAC output always goes to Y integrator */ |
| 415 | 415 | vectrex_via_out[PORTA] = data; |
| 416 | | timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &analog[A_Y], data, update_signal); |
| 416 | timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), &analog[A_Y], data, update_signal); |
| 417 | 417 | |
| 418 | 418 | if (!(vectrex_via_out[PORTB] & 0x1)) |
| 419 | | vectrex_multiplexer ((vectrex_via_out[PORTB] >> 1) & 0x3); |
| 419 | vectrex_multiplexer (space->machine, (vectrex_via_out[PORTB] >> 1) & 0x3); |
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | |
| 423 | 423 | static WRITE8_HANDLER(v_via_ca2_w) |
| 424 | 424 | { |
| 425 | 425 | if (data == 0) |
| 426 | | timer_set(machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, vectrex_zero_integrators); |
| 426 | timer_set(space->machine, ATTOTIME_IN_NSEC(ANALOG_DELAY), NULL, 0, vectrex_zero_integrators); |
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | |
| r3749 | r3750 | |
| 448 | 448 | dx = abs(pen_x - x_int); |
| 449 | 449 | dy = abs(pen_y - y_int); |
| 450 | 450 | if (dx < 500000 && dy < 500000 && data > 0) |
| 451 | | timer_set(machine, attotime_zero, NULL, 0, lightpen_trigger); |
| 451 | timer_set(space->machine, attotime_zero, NULL, 0, lightpen_trigger); |
| 452 | 452 | } |
| 453 | 453 | } |
| 454 | 454 | |
| 455 | | timer_set(machine, attotime_zero, &blank, data, update_signal); |
| 455 | timer_set(space->machine, attotime_zero, &blank, data, update_signal); |
| 456 | 456 | cb2 = data; |
| 457 | 457 | } |
| 458 | 458 | } |
src/mess/messdriv.c
| r3749 | r3750 | |
| 132 | 132 | // DRIVER( shmc1200 ) |
| 133 | 133 | |
| 134 | 134 | /* FAIRCHILD */ |
| 135 | | //0128u5 DRIVER( channelf ) /* Fairchild Channel F VES - 1976 */ |
| 135 | DRIVER( channelf ) /* Fairchild Channel F VES - 1976 */ |
| 136 | 136 | |
| 137 | 137 | /* COLECO */ |
| 138 | 138 | DRIVER( coleco ) /* ColecoVision (Original BIOS) */ |
| r3749 | r3750 | |
| 302 | 302 | //0128u5 DRIVER( a800xl ) /* 1983 Atari 800 XL */ |
| 303 | 303 | |
| 304 | 304 | /* COMMODORE */ |
| 305 | | //0128u5 DRIVER( kim1 ) /* Commodore (MOS) KIM-1 1975 */ |
| 305 | DRIVER( kim1 ) /* Commodore (MOS) KIM-1 1975 */ |
| 306 | 306 | //0128u5 DRIVER( sym1 ) /* Synertek SYM-1 */ |
| 307 | 307 | //0128u5 DRIVER( aim65 ) /* Rockwell AIM65 */ |
| 308 | 308 | |
| r3749 | r3750 | |
| 583 | 583 | //0128u5 DRIVER( kc85_4d ) /* VEB KC 85/4 with disk interface */ |
| 584 | 584 | |
| 585 | 585 | /* MICROBEE SYSTEMS */ |
| 586 | | //0128u5 DRIVER( mbee ) /* Microbee 16 Standard or Plus */ |
| 587 | | //0128u5 DRIVER( mbeeic ) /* Microbee 32 IC */ |
| 588 | | //0128u5 DRIVER( mbeepc ) /* Microbee 32 PC */ |
| 589 | | //0128u5 DRIVER( mbeepc85 ) /* Microbee 32 PC85 */ |
| 590 | | //0128u5 DRIVER( mbee56 ) /* Microbee 56K (CP/M) */ |
| 586 | DRIVER( mbee ) /* Microbee 16 Standard or Plus */ |
| 587 | DRIVER( mbeeic ) /* Microbee 32 IC */ |
| 588 | DRIVER( mbeepc ) /* Microbee 32 PC */ |
| 589 | DRIVER( mbeepc85 ) /* Microbee 32 PC85 */ |
| 590 | DRIVER( mbee56 ) /* Microbee 56K (CP/M) */ |
| 591 | 591 | |
| 592 | 592 | /* TANDY RADIO SHACK */ |
| 593 | 593 | //0128u5 DRIVER( trs80 ) /* TRS-80 Model I - Level I BASIC */ |
| r3749 | r3750 | |
| 813 | 813 | //0128u5 DRIVER( exidyd ) /* Sorcerer (cassette only) */ |
| 814 | 814 | |
| 815 | 815 | /* GALAKSIJA */ |
| 816 | | //0128u5 DRIVER( galaxy ) |
| 817 | | //0128u5 DRIVER( galaxyp ) |
| 816 | DRIVER( galaxy ) |
| 817 | DRIVER( galaxyp ) |
| 818 | 818 | |
| 819 | 819 | /* Lviv/L'vov */ |
| 820 | 820 | //0128u5 DRIVER( lviv ) /* Lviv/L'vov */ |
| r3749 | r3750 | |
| 1064 | 1064 | //0128u5 DRIVER( bw2 ) |
| 1065 | 1065 | |
| 1066 | 1066 | /* Exeltel */ |
| 1067 | | //0128u5 DRIVER( exl100 ) |
| 1067 | DRIVER( exl100 ) |
| 1068 | 1068 | // DRIVER( exeltel ) |
| 1069 | 1069 | |
| 1070 | 1070 | /* Comx World Operations Ltd */ |
src/mess/machine/vectrex.c
| r3749 | r3750 | |
| 286 | 286 | { |
| 287 | 287 | vectrex_imager_status = param; |
| 288 | 288 | coffset = param > 1? 3: 0; |
| 289 | | timer_set (double_to_attotime(rtime * vectrex_imager_angles[0]), NULL, imager_colors[coffset+2], vectrex_imager_change_color); |
| 290 | | timer_set (double_to_attotime(rtime * vectrex_imager_angles[1]), NULL, imager_colors[coffset+1], vectrex_imager_change_color); |
| 291 | | timer_set (double_to_attotime(rtime * vectrex_imager_angles[2]), NULL, imager_colors[coffset], vectrex_imager_change_color); |
| 289 | timer_set (machine, double_to_attotime(rtime * vectrex_imager_angles[0]), NULL, imager_colors[coffset+2], vectrex_imager_change_color); |
| 290 | timer_set (machine, double_to_attotime(rtime * vectrex_imager_angles[1]), NULL, imager_colors[coffset+1], vectrex_imager_change_color); |
| 291 | timer_set (machine, double_to_attotime(rtime * vectrex_imager_angles[2]), NULL, imager_colors[coffset], vectrex_imager_change_color); |
| 292 | 292 | |
| 293 | 293 | if (param == 2) |
| 294 | 294 | { |
| 295 | | timer_set (double_to_attotime(rtime * 0.50), NULL, 1, vectrex_imager_eye); |
| 295 | timer_set (machine, double_to_attotime(rtime * 0.50), NULL, 1, vectrex_imager_eye); |
| 296 | 296 | |
| 297 | 297 | /* Index hole sensor is connected to IO7 which triggers also CA1 of VIA */ |
| 298 | 298 | via_set_input_ca1(machine, 0, 1); |
| 299 | 299 | via_set_input_ca1(machine, 0, 0); |
| 300 | 300 | vectrex_imager_pinlevel |= 0x80; |
| 301 | | timer_set (double_to_attotime(rtime / 360.0), &vectrex_imager_pinlevel, 0, update_level); |
| 301 | timer_set (machine, double_to_attotime(rtime / 360.0), &vectrex_imager_pinlevel, 0, update_level); |
| 302 | 302 | } |
| 303 | 303 | } |
| 304 | 304 | } |
| r3749 | r3750 | |
| 316 | 316 | if (!mcontrol && mcontrol ^ state) |
| 317 | 317 | { |
| 318 | 318 | state = mcontrol; |
| 319 | | tmp = attotime_to_double(timer_get_time(machine)); |
| 319 | tmp = attotime_to_double(timer_get_time(space->machine)); |
| 320 | 320 | wavel = tmp - sl; |
| 321 | 321 | sl = tmp; |
| 322 | 322 | |
| r3749 | r3750 | |
| 343 | 343 | if (mcontrol && mcontrol ^ state) |
| 344 | 344 | { |
| 345 | 345 | state = mcontrol; |
| 346 | | pwl = attotime_to_double(timer_get_time(machine)) - sl; |
| 346 | pwl = attotime_to_double(timer_get_time(space->machine)) - sl; |
| 347 | 347 | } |
| 348 | 348 | } |
| 349 | 349 | |
src/mess/machine/ay31015.c
| r3749 | r3750 | |
| 716 | 716 | ay31015->tx_clock = ay31015->config->transmitter_clock; |
| 717 | 717 | ay31015->rx_clock = ay31015->config->receiver_clock; |
| 718 | 718 | |
| 719 | | ay31015->rx_timer = timer_alloc(machine, ay31015_rx_process, (void *)device ); |
| 720 | | ay31015->tx_timer = timer_alloc(machine, ay31015_tx_process, (void *)device ); |
| 719 | ay31015->rx_timer = timer_alloc(device->machine, ay31015_rx_process, (void *)device ); |
| 720 | ay31015->tx_timer = timer_alloc(device->machine, ay31015_tx_process, (void *)device ); |
| 721 | 721 | |
| 722 | 722 | ay31015_update_rx_timer( device ); |
| 723 | 723 | ay31015_update_tx_timer( device ); |