trunk/src/mess/drivers/victor9k.c
r241668 | r241669 | |
375 | 375 | // MACHINE INITIALIZATION |
376 | 376 | //************************************************************************** |
377 | 377 | |
378 | | //------------------------------------------------- |
379 | | // MACHINE_START( victor9k ) |
380 | | //------------------------------------------------- |
381 | | |
382 | 378 | void victor9k_state::machine_start() |
383 | 379 | { |
384 | 380 | // state saving |
r241668 | r241669 | |
395 | 391 | program.install_ram(0x00000, m_ram->size() - 1, m_ram->pointer()); |
396 | 392 | } |
397 | 393 | |
| 394 | void victor9k_state::machine_reset() |
| 395 | { |
| 396 | m_maincpu->reset(); |
| 397 | m_upd7201->reset(); |
| 398 | m_ssda->reset(); |
| 399 | m_via1->reset(); |
| 400 | m_via2->reset(); |
| 401 | m_via3->reset(); |
| 402 | m_crtc->reset(); |
| 403 | m_fdc->reset(); |
| 404 | } |
398 | 405 | |
399 | 406 | |
400 | 407 | //************************************************************************** |
trunk/src/mess/machine/victor9k_fdc.c
r241668 | r241669 | |
152 | 152 | |
153 | 153 | MCFG_DEVICE_ADD(M6522_5_TAG, VIA6522, XTAL_30MHz/30) |
154 | 154 | MCFG_VIA6522_IRQ_HANDLER(WRITELINE(victor_9000_fdc_t, via5_irq_w)) |
| 155 | MCFG_VIA6522_READPA_HANDLER(READ8(victor_9000_fdc_t, via5_pa_r)) |
| 156 | MCFG_VIA6522_WRITEPB_HANDLER(WRITE8(victor_9000_fdc_t, via5_pb_w)) |
155 | 157 | |
156 | 158 | MCFG_DEVICE_ADD(M6522_6_TAG, VIA6522, XTAL_30MHz/30) |
157 | 159 | MCFG_VIA6522_READPA_HANDLER(READ8(victor_9000_fdc_t, via6_pa_r)) |
r241668 | r241669 | |
268 | 270 | // resolve callbacks |
269 | 271 | m_irq_cb.resolve_safe(); |
270 | 272 | |
| 273 | // reset devices |
| 274 | m_via4->reset(); |
| 275 | m_via5->reset(); |
| 276 | m_via6->reset(); |
| 277 | |
271 | 278 | // set floppy callbacks |
272 | 279 | m_floppy0->setup_ready_cb(floppy_image_device::ready_cb(FUNC(victor_9000_fdc_t::ready0_cb), this)); |
273 | 280 | m_floppy0->setup_load_cb(floppy_image_device::load_cb(FUNC(victor_9000_fdc_t::load0_cb), this)); |
r241668 | r241669 | |
473 | 480 | } |
474 | 481 | |
475 | 482 | |
476 | | /* |
| 483 | READ8_MEMBER( victor_9000_fdc_t::via5_pa_r ) |
| 484 | { |
| 485 | /* |
477 | 486 | |
478 | | bit description |
| 487 | bit description |
479 | 488 | |
480 | | PA0 E0 |
481 | | PA1 E1 |
482 | | PA2 I1 |
483 | | PA3 E2 |
484 | | PA4 E4 |
485 | | PA5 E5 |
486 | | PA6 I7 |
487 | | PA7 E6 |
| 489 | PA0 E0 |
| 490 | PA1 E1 |
| 491 | PA2 I1 |
| 492 | PA3 E2 |
| 493 | PA4 E4 |
| 494 | PA5 E5 |
| 495 | PA6 I7 |
| 496 | PA7 E6 |
488 | 497 | |
489 | | */ |
| 498 | */ |
490 | 499 | |
| 500 | return 0; |
| 501 | } |
| 502 | |
491 | 503 | WRITE8_MEMBER( victor_9000_fdc_t::via5_pb_w ) |
492 | 504 | { |
493 | 505 | /* |