trunk/src/mame/drivers/seta.c
| r32568 | r32569 | |
| 1362 | 1362 | #include "machine/6821pia.h" |
| 1363 | 1363 | #include "machine/6850acia.h" |
| 1364 | 1364 | #include "machine/msm6242.h" |
| 1365 | #include "machine/pit8253.h" |
| 1365 | 1366 | #include "sound/2203intf.h" |
| 1366 | 1367 | #include "sound/2612intf.h" |
| 1367 | 1368 | #include "sound/3812intf.h" |
| r32568 | r32569 | |
| 1370 | 1371 | #include "machine/nvram.h" |
| 1371 | 1372 | |
| 1372 | 1373 | #if __uPD71054_TIMER |
| 1374 | // this mess should be replaced with pit8254, see madshark |
| 1373 | 1375 | |
| 1374 | 1376 | #define USED_TIMER_NUM 1 |
| 1375 | 1377 | /*------------------------------ |
| r32568 | r32569 | |
| 1489 | 1491 | |
| 1490 | 1492 | ***************************************************************************/ |
| 1491 | 1493 | |
| 1494 | /* |
| 1492 | 1495 | |
| 1496 | uPD71054C Timer |
| 1497 | |
| 1498 | */ |
| 1499 | |
| 1500 | WRITE_LINE_MEMBER(seta_state::pit_out0) |
| 1501 | { |
| 1502 | if (state) |
| 1503 | m_maincpu->set_input_line(4, HOLD_LINE); |
| 1504 | } |
| 1505 | |
| 1506 | |
| 1507 | |
| 1493 | 1508 | /* |
| 1494 | 1509 | |
| 1495 | 1510 | Shared RAM: |
| r32568 | r32569 | |
| 2423 | 2438 | AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", seta001_device, spritectrl_r16, spritectrl_w16) |
| 2424 | 2439 | AM_RANGE(0xa80000, 0xa80001) AM_RAM // ? $4000 |
| 2425 | 2440 | AM_RANGE(0xb00000, 0xb03fff) AM_RAM AM_DEVREADWRITE("spritegen", seta001_device, spritecode_r16, spritecode_w16) // Sprites Code + X + Attr |
| 2426 | | #if __uPD71054_TIMER |
| 2427 | | AM_RANGE(0xc00000, 0xc00007) AM_WRITE(timer_regs_w) // ? |
| 2428 | | #else |
| 2429 | | AM_RANGE(0xc00000, 0xc00007) AM_WRITENOP // ? |
| 2430 | | #endif |
| 2441 | AM_RANGE(0xc00000, 0xc00007) AM_DEVREADWRITE8("pit", pit8254_device, read, write, 0x00ff) |
| 2431 | 2442 | AM_RANGE(0xd00000, 0xd03fff) AM_DEVREADWRITE("x1snd", x1_010_device, word_r, word_w) // Sound |
| 2432 | 2443 | ADDRESS_MAP_END |
| 2433 | 2444 | |
| r32568 | r32569 | |
| 8614 | 8625 | MCFG_CPU_PROGRAM_MAP(madshark_map) |
| 8615 | 8626 | MCFG_CPU_VBLANK_INT_DRIVER("screen", seta_state, wrofaero_interrupt) |
| 8616 | 8627 | |
| 8617 | | #if __uPD71054_TIMER |
| 8618 | | MCFG_MACHINE_START_OVERRIDE(seta_state, wrofaero ) |
| 8619 | | #endif // __uPD71054_TIMER |
| 8628 | MCFG_DEVICE_ADD("pit", PIT8254, 0) // uPD71054C |
| 8629 | MCFG_PIT8253_CLK0(16000000/2/8) |
| 8630 | MCFG_PIT8253_OUT0_HANDLER(WRITELINE(seta_state, pit_out0)) |
| 8620 | 8631 | |
| 8621 | 8632 | MCFG_DEVICE_ADD("spritegen", SETA001_SPRITE, 0) |
| 8622 | 8633 | MCFG_SETA001_SPRITE_GFXDECODE("gfxdecode") |
trunk/src/mame/includes/seta.h
| r32568 | r32569 | |
| 232 | 232 | void draw_tilemap_palette_effect(bitmap_ind16 &bitmap, const rectangle &cliprect, tilemap_t *tilemap, int scrollx, int scrolly, int gfxnum, int flipscreen); |
| 233 | 233 | void seta_layers_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int sprite_bank_size, int sprite_setac ); |
| 234 | 234 | void uPD71054_timer_init( ); |
| 235 | DECLARE_WRITE_LINE_MEMBER(pit_out0); |
| 235 | 236 | DECLARE_WRITE_LINE_MEMBER(utoukond_ym3438_interrupt); |
| 236 | 237 | }; |