Previous 199869 Revisions Next

r32569 Monday 6th October, 2014 at 22:17:36 UTC by hap
hooked up pit8254 to one of the games as example
[src/mame/drivers]seta.c
[src/mame/includes]seta.h

trunk/src/mame/drivers/seta.c
r32568r32569
13621362#include "machine/6821pia.h"
13631363#include "machine/6850acia.h"
13641364#include "machine/msm6242.h"
1365#include "machine/pit8253.h"
13651366#include "sound/2203intf.h"
13661367#include "sound/2612intf.h"
13671368#include "sound/3812intf.h"
r32568r32569
13701371#include "machine/nvram.h"
13711372
13721373#if __uPD71054_TIMER
1374// this mess should be replaced with pit8254, see madshark
13731375
13741376#define USED_TIMER_NUM  1
13751377/*------------------------------
r32568r32569
14891491
14901492***************************************************************************/
14911493
1494/*
14921495
1496 uPD71054C Timer
1497
1498*/
1499
1500WRITE_LINE_MEMBER(seta_state::pit_out0)
1501{
1502   if (state)
1503      m_maincpu->set_input_line(4, HOLD_LINE);
1504}
1505
1506
1507
14931508/*
14941509
14951510 Shared RAM:
r32568r32569
24232438   AM_RANGE(0xa00600, 0xa00607) AM_RAM AM_DEVREADWRITE("spritegen", seta001_device, spritectrl_r16, spritectrl_w16)
24242439   AM_RANGE(0xa80000, 0xa80001) AM_RAM                             // ? $4000
24252440   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)
24312442   AM_RANGE(0xd00000, 0xd03fff) AM_DEVREADWRITE("x1snd", x1_010_device, word_r, word_w)   // Sound
24322443ADDRESS_MAP_END
24332444
r32568r32569
86148625   MCFG_CPU_PROGRAM_MAP(madshark_map)
86158626   MCFG_CPU_VBLANK_INT_DRIVER("screen", seta_state,  wrofaero_interrupt)
86168627
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))
86208631
86218632   MCFG_DEVICE_ADD("spritegen", SETA001_SPRITE, 0)
86228633   MCFG_SETA001_SPRITE_GFXDECODE("gfxdecode")
trunk/src/mame/includes/seta.h
r32568r32569
232232   void draw_tilemap_palette_effect(bitmap_ind16 &bitmap, const rectangle &cliprect, tilemap_t *tilemap, int scrollx, int scrolly, int gfxnum, int flipscreen);
233233   void seta_layers_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int sprite_bank_size, int sprite_setac );
234234   void uPD71054_timer_init(  );
235   DECLARE_WRITE_LINE_MEMBER(pit_out0);
235236   DECLARE_WRITE_LINE_MEMBER(utoukond_ym3438_interrupt);
236237};

Previous 199869 Revisions Next


© 1997-2024 The MAME Team