Previous 199869 Revisions Next

r29493 Wednesday 9th April, 2014 at 16:24:02 UTC by Fabio Priuli
hd63484: updated to use inline configs. nw.
[src/emu/video]hd63484.c hd63484.h
[src/mame/drivers]shanghai.c sigmab52.c taito_b.c wildpkr.c

trunk/src/mame/drivers/shanghai.c
r29492r29493
435435   DEVCB_NULL, DEVCB_NULL, DEVCB_NULL
436436};
437437
438static const hd63484_interface shanghai_hd63484_intf = { 0 };
439
440438static MACHINE_CONFIG_START( shanghai, shanghai_state )
441439
442440   /* basic machine hardware */
r29492r29493
457455   MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
458456   MCFG_PALETTE_INIT_OWNER(shanghai_state,shanghai)
459457
460   MCFG_HD63484_ADD("hd63484", shanghai_hd63484_intf)
458   // TODO: convert to use H63484
459   MCFG_DEVICE_ADD("hd63484", HD63484, 0)
461460
462461   /* sound hardware */
463462   MCFG_SPEAKER_STANDARD_MONO("mono")
r29492r29493
490489   MCFG_PALETTE_ADD("palette", 256)
491490   MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
492491
493   MCFG_HD63484_ADD("hd63484", shanghai_hd63484_intf)
492   // TODO: convert to use H63484
493   MCFG_DEVICE_ADD("hd63484", HD63484, 0)
494494
495495   /* sound hardware */
496496   MCFG_SPEAKER_STANDARD_MONO("mono")
r29492r29493
526526   MCFG_PALETTE_ADD("palette", 256)
527527   MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
528528
529   MCFG_HD63484_ADD("hd63484", shanghai_hd63484_intf)
529   // TODO: convert to use H63484
530   MCFG_DEVICE_ADD("hd63484", HD63484, 0)
530531
531532   /* sound hardware */
532533   MCFG_SPEAKER_STANDARD_MONO("mono")
trunk/src/mame/drivers/sigmab52.c
r29492r29493
585585#endif
586586}
587587
588//static const hd63484_interface jwildb52_hd63484_intf = { 1 };
589
590
591588/*************************
592589*    Machine Drivers     *
593590*************************/
trunk/src/mame/drivers/wildpkr.c
r29492r29493
255255
256256}
257257
258// static const hd63484_interface wildpkr_hd63484_intf = { 1 };
259258
260
261259static ADDRESS_MAP_START( ramdac_map, AS_0, 8, wildpkr_state )
262260   AM_RANGE(0x000, 0x3ff) AM_DEVREADWRITE("ramdac",ramdac_device,ramdac_pal_r,ramdac_rgb666_w)
263261ADDRESS_MAP_END
r29492r29493
289287   MCFG_SCREEN_UPDATE_DRIVER(wildpkr_state, screen_update_wildpkr)
290288   MCFG_SCREEN_PALETTE("palette")
291289
292//  MCFG_HD63484_ADD("hd63484", wildpkr_hd63484_intf)
290//  MCFG_DEVICE_ADD("hd63484", HD63484, 0)
293291   MCFG_RAMDAC_ADD("ramdac", ramdac_intf, ramdac_map, "palette")
294292
295293   MCFG_PALETTE_ADD("palette", 256)
trunk/src/mame/drivers/taito_b.c
r29492r29493
28812881   MCFG_TC0140SYT_SLAVE_CPU("audiocpu")
28822882MACHINE_CONFIG_END
28832883
2884/* TODO: Properly hook up the HD63484 */
2885static const hd63484_interface realpunc_hd63484_intf =
2886{
2887   0
2888};
2889
28902884static MACHINE_CONFIG_START( realpunc, taitob_state )
28912885
28922886   /* basic machine hardware */
r29492r29493
29212915
29222916   MCFG_VIDEO_START_OVERRIDE(taitob_state,realpunc)
29232917
2924   MCFG_HD63484_ADD("hd63484", realpunc_hd63484_intf)
2918   // TODO: convert to use H63484 and hook it up properly
2919   MCFG_DEVICE_ADD("hd63484", HD63484, 0)
29252920
29262921   MCFG_DEVICE_ADD("tc0180vcu", TC0180VCU, 0)
29272922   MCFG_TC0180VCU_BG_COLORBASE(0xc0)
trunk/src/emu/video/hd63484.h
r29492r29493
2121    TYPE DEFINITIONS
2222***************************************************************************/
2323
24struct hd63484_interface
24class hd63484_device : public device_t
2525{
26   int        m_skattva_hack;
27};
28
29class hd63484_device : public device_t,
30                              public hd63484_interface
31{
3226public:
3327   hd63484_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
3428   ~hd63484_device() {}
r29492r29493
4539
4640protected:
4741   // device-level overrides
48   virtual void device_config_complete();
4942   virtual void device_start();
5043   virtual void device_reset();
5144
r29492r29493
6457   INT16        m_cpx, m_cpy;
6558
6659   int          m_regno;
60   int          m_skattva_hack;
6761
6862   void doclr16( int opcode, UINT16 fill, int *dst, INT16 _ax, INT16 _ay );
6963   void docpy16( int opcode, int src, int *dst, INT16 _ax, INT16 _ay );
r29492r29493
7872   void paint( int sx, int sy, int col );
7973
8074   void command_w(UINT16 cmd);
81
8275};
8376
8477extern ATTR_DEPRECATED const device_type HD63484;
8578
86
87/***************************************************************************
88    DEVICE CONFIGURATION MACROS
89***************************************************************************/
90
91#define MCFG_HD63484_ADD(_tag, _interface) \
92   MCFG_DEVICE_ADD(_tag, HD63484, 0) \
93   MCFG_DEVICE_CONFIG(_interface)
94
9579#endif /* __HD63484_H__ */
trunk/src/emu/video/hd63484.c
r29492r29493
5858   m_rwp_dn(0),
5959   m_cpx(0),
6060   m_cpy(0),
61   m_regno(0)
61   m_regno(0),
62   m_skattva_hack(0)
6263{
6364}
6465
6566//-------------------------------------------------
66//  device_config_complete - perform any
67//  operations now that the configuration is
68//  complete
69//-------------------------------------------------
70
71void hd63484_device::device_config_complete()
72{
73   // inherit a copy of the static data
74   const hd63484_interface *intf = reinterpret_cast<const hd63484_interface *>(static_config());
75   if (intf != NULL)
76      *static_cast<hd63484_interface *>(this) = *intf;
77
78   // or initialize to defaults if none provided
79   else
80   {
81      m_skattva_hack = 0;
82   }
83}
84
85//-------------------------------------------------
8667//  device_start - device-specific startup
8768//-------------------------------------------------
8869
r29492r29493
122103   save_item(NAME(m_cpx));
123104   save_item(NAME(m_cpy));
124105   save_item(NAME(m_regno));
125   save_item(NAME(m_skattva_hack));
126106}
127107
128108//-------------------------------------------------

Previous 199869 Revisions Next


© 1997-2024 The MAME Team