trunk/src/mame/drivers/stuntair.c
| r23515 | r23516 | |
| 5 | 5 | driver todo: (SOME OF THIS WILL NEED PCB REFERENCES / MEASUREMENTS) |
| 6 | 6 | - correct colour PROM decoding (resistor values?) |
| 7 | 7 | - correct FG colour handling (currently use a hardcoded white) |
| 8 | | - correct sound (need interrupt frequencies at least) |
| 8 | - correct sound (discrete stuff is for filtering? or drums?) |
| 9 | 9 | - correct remaining GFX / sprite issues (flicker sometimes, might need better vblank timing?) |
| 10 | 10 | |
| 11 | 11 | |
| 12 | 12 | Hardware info (complete): |
| 13 | 13 | Main cpu Z80A |
| 14 | 14 | Sound cpu Z80A |
| 15 | | Sound ic AY-3-8910 x2 |
| 15 | Sound ic AY-3-8910 x2 @ 1.536MHz |
| 16 | 16 | Note: stereo sound output.Op amps LM3900 x3, audio amps TDA2002 x2, many discrete components |
| 17 | 17 | |
| 18 | 18 | Osc: 18.432 Mhz |
| r23515 | r23516 | |
| 461 | 461 | |
| 462 | 462 | WRITE8_MEMBER(stuntair_state::ay8910_portb_w) |
| 463 | 463 | { |
| 464 | | // it writes $e8 and $f0 for music drums |
| 464 | // it writes $e8 and $f0 for music drums? |
| 465 | 465 | // possibly to discrete sound circuitry? |
| 466 | 466 | logerror("ay8910_portb_w: %02x\n", data); |
| 467 | 467 | } |
| r23515 | r23516 | |
| 527 | 527 | MCFG_CPU_ADD("audiocpu", Z80, XTAL_18_432MHz/6) /* 3 MHz? */ |
| 528 | 528 | MCFG_CPU_PROGRAM_MAP(stuntair_sound_map) |
| 529 | 529 | MCFG_CPU_IO_MAP(stuntair_sound_portmap) |
| 530 | | MCFG_CPU_PERIODIC_INT_DRIVER(stuntair_state, irq0_line_hold, 60*8) // timing guessed, probably wrong ?? drives music tempo.. and where is irq ack? |
| 530 | MCFG_CPU_PERIODIC_INT_DRIVER(stuntair_state, irq0_line_hold, 420) // drives music tempo, timing is approximate based on PCB audio recording.. and where is irq ack? |
| 531 | 531 | |
| 532 | 532 | /* video hardware */ |
| 533 | 533 | MCFG_SCREEN_ADD("screen", RASTER) |
| 534 | | MCFG_SCREEN_REFRESH_RATE(60) |
| 534 | MCFG_SCREEN_REFRESH_RATE(60) // ? |
| 535 | 535 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) |
| 536 | 536 | MCFG_SCREEN_SIZE(256, 256) |
| 537 | 537 | MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 16, 256-16-1) |