Previous 199869 Revisions Next

r17421 Thursday 23rd August, 2012 at 13:24:03 UTC by Angelo Salese
Template for King device
[src/emu]emu.mak
[src/emu/video]huc6272.c* huc6272.h*
[src/mess/drivers]pcfx.c

trunk/src/emu/video/huc6272.c
r0r17421
1/***************************************************************************
2
3    Hudson/NEC HuC6272 "King" device
4
5***************************************************************************/
6
7#include "emu.h"
8#include "video/huc6272.h"
9
10
11
12//**************************************************************************
13//  GLOBAL VARIABLES
14//**************************************************************************
15
16// device type definition
17const device_type huc6272 = &device_creator<huc6272_device>;
18
19
20//**************************************************************************
21//  LIVE DEVICE
22//**************************************************************************
23
24//-------------------------------------------------
25//  huc6272_device - constructor
26//-------------------------------------------------
27
28huc6272_device::huc6272_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
29   : device_t(mconfig, huc6272, "huc6272", tag, owner, clock)
30{
31
32}
33
34
35//-------------------------------------------------
36//  device_validity_check - perform validity checks
37//  on this device
38//-------------------------------------------------
39
40void huc6272_device::device_validity_check(validity_checker &valid) const
41{
42}
43
44
45//-------------------------------------------------
46//  device_start - device-specific startup
47//-------------------------------------------------
48
49void huc6272_device::device_start()
50{
51
52}
53
54
55//-------------------------------------------------
56//  device_reset - device-specific reset
57//-------------------------------------------------
58
59void huc6272_device::device_reset()
60{
61}
62
63
64//**************************************************************************
65//  READ/WRITE HANDLERS
66//**************************************************************************
67
68READ16_MEMBER( huc6272_device::read )
69{
70   return 0;
71}
72
73WRITE16_MEMBER( huc6272_device::write )
74{
75}
trunk/src/emu/video/huc6272.h
r0r17421
1/***************************************************************************
2
3Template for skeleton device
4
5***************************************************************************/
6
7#pragma once
8
9#ifndef __huc6272DEV_H__
10#define __huc6272DEV_H__
11
12
13
14//**************************************************************************
15//  INTERFACE CONFIGURATION MACROS
16//**************************************************************************
17
18#define MCFG_HUC6272_ADD(_tag,_freq) \
19   MCFG_DEVICE_ADD(_tag, huc6272, _freq) \
20
21
22//**************************************************************************
23//  TYPE DEFINITIONS
24//**************************************************************************
25
26// ======================> huc6272_device
27
28class huc6272_device :   public device_t
29{
30public:
31   // construction/destruction
32   huc6272_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
33
34   // I/O operations
35   DECLARE_WRITE16_MEMBER( write );
36   DECLARE_READ16_MEMBER( read );
37
38protected:
39   // device-level overrides
40   virtual void device_validity_check(validity_checker &valid) const;
41   virtual void device_start();
42   virtual void device_reset();
43};
44
45
46// device type definition
47extern const device_type huc6272;
48
49
50
51//**************************************************************************
52//  GLOBAL VARIABLES
53//**************************************************************************
54
55
56
57#endif
trunk/src/emu/emu.mak
r17420r17421
289289   $(EMUVIDEO)/huc6260.o      \
290290   $(EMUVIDEO)/huc6261.o      \
291291   $(EMUVIDEO)/huc6270.o      \
292   $(EMUVIDEO)/i8275.o         \
292   $(EMUVIDEO)/huc6272.o      \
293   $(EMUVIDEO)/i8275.o      \
293294   $(EMUVIDEO)/k053250.o      \
294295   $(EMUVIDEO)/mc6845.o      \
295296   $(EMUVIDEO)/msm6255.o      \
296297   $(EMUVIDEO)/pc_cga.o      \
297298   $(EMUVIDEO)/cgapal.o      \
298299   $(EMUVIDEO)/pc_vga.o      \
299   $(EMUVIDEO)/poly.o         \
300   $(EMUVIDEO)/psx.o         \
300   $(EMUVIDEO)/poly.o      \
301   $(EMUVIDEO)/psx.o      \
301302   $(EMUVIDEO)/ramdac.o      \
302303   $(EMUVIDEO)/resnet.o      \
303304   $(EMUVIDEO)/rgbutil.o      \
trunk/src/mess/drivers/pcfx.c
r17420r17421
1111#include "cpu/v810/v810.h"
1212#include "video/huc6261.h"
1313#include "video/huc6270.h"
14#include "video/huc6272.h"
1415
1516typedef struct _pcfx_pad_t pcfx_pad_t;
1617
r17420r17421
165166   AM_RANGE( 0x00000300, 0x000003FF ) AM_DEVREADWRITE16( "huc6261", huc6261_device, read, write, 0xffff )   /* HuC6261 */
166167   AM_RANGE( 0x00000400, 0x000004FF ) AM_DEVREADWRITE8( "huc6270_a", huc6270_device, read, write, 0xffff )   /* HuC6270-A */
167168   AM_RANGE( 0x00000500, 0x000005FF ) AM_DEVREADWRITE8( "huc6270_b", huc6270_device, read, write, 0xffff )   /* HuC6270-B */
168   AM_RANGE( 0x00000600, 0x000006FF ) AM_NOP   /* HuC6272 */
169   AM_RANGE( 0x00000600, 0x000006FF ) AM_DEVREADWRITE16( "huc6272", huc6272_device, read, write, 0xffff )   /* HuC6272 */
169170   AM_RANGE( 0x00000C80, 0x00000C83 ) AM_NOP
170171   AM_RANGE( 0x00000E00, 0x00000EFF ) AM_READWRITE16( irq_read, irq_write, 0xffff )   /* Interrupt controller */
171172   AM_RANGE( 0x00000F00, 0x00000FFF ) AM_NOP
r17420r17421
489490   MCFG_HUC6270_ADD( "huc6270_a", pcfx_huc6270_a_config )
490491   MCFG_HUC6270_ADD( "huc6270_b", pcfx_huc6270_b_config )
491492   MCFG_HUC6261_ADD( "huc6261", XTAL_21_4772MHz, pcfx_huc6261_config )
493   MCFG_HUC6272_ADD( "huc6272", XTAL_21_4772MHz )
492494
493495MACHINE_CONFIG_END
494496

Previous 199869 Revisions Next


© 1997-2024 The MAME Team