Previous 199869 Revisions Next

r18394 Tuesday 9th October, 2012 at 20:05:57 UTC by hap
assume color overlay from flyer
[src/mame/drivers]ace.c

trunk/src/mame/drivers/ace.c
r18393r18394
3838****************************************************************************/
3939
4040#include "emu.h"
41#include "rendlay.h"
4142#include "cpu/i8085/i8085.h"
4243
4344#define MASTER_CLOCK XTAL_18MHz
r18393r18394
4748{
4849public:
4950   aceal_state(const machine_config &mconfig, device_type type, const char *tag)
50      : driver_device(mconfig, type, tag) ,
51      : driver_device(mconfig, type, tag),
5152      m_scoreram(*this, "scoreram"),
5253      m_ram2(*this, "ram2"),
53      m_characterram(*this, "characterram"){ }
54      m_characterram(*this, "characterram")
55   { }
5456
5557   /* video-related */
5658   required_shared_ptr<UINT8> m_scoreram;
r18393r18394
6062   /* input-related */
6163   int m_objpos[8];
6264   DECLARE_WRITE8_MEMBER(ace_objpos_w);
63   DECLARE_READ8_MEMBER(ace_objpos_r);
6465   DECLARE_WRITE8_MEMBER(ace_characterram_w);
6566   DECLARE_WRITE8_MEMBER(ace_scoreram_w);
6667   DECLARE_READ8_MEMBER(unk_r);
r18393r18394
7778   m_objpos[offset] = data;
7879}
7980
80#if 0
81READ8_MEMBER(aceal_state::ace_objpos_r)
82{
83   return m_objpos[offset];
84}
85#endif
86
8781void aceal_state::video_start()
8882{
8983   machine().gfx[1]->set_source(m_characterram);
r18393r18394
132126
133127void aceal_state::palette_init()
134128{
135   palette_set_color(machine(), 0, MAKE_RGB(0x00,0x00,0x00)); /* black */
136   palette_set_color(machine(), 1, MAKE_RGB(0xff,0xff,0xff)); /* white */
129   palette_set_color(machine(), 0, MAKE_RGB(0xff,0xff,0xff)); /* white */
130   palette_set_color(machine(), 1, MAKE_RGB(0x00,0x00,0x00)); /* black */
137131}
138132
139133
r18393r18394
352346   MCFG_CPU_ADD("maincpu", I8080, MASTER_CLOCK/9)   /* 2 MHz ? */
353347   MCFG_CPU_PROGRAM_MAP(main_map)
354348
355
356349   /* video hardware */
357350   MCFG_SCREEN_ADD("screen", RASTER)
358351   MCFG_SCREEN_REFRESH_RATE(60)
r18393r18394
364357   MCFG_GFXDECODE(ace)
365358   MCFG_PALETTE_LENGTH(2)
366359
367
368360   /* sound hardware */
369361   /* ???? */
370362
r18393r18394
387379   /* not used - I couldn't guess when this should be displayed */
388380   ROM_REGION( 0x0200, "gfx1", 0 )
389381   ROM_LOAD( "ace.k4",      0x0000, 0x0200, CRC(daa05ec6) SHA1(8b71ffb802293dc93f6b492ff128a704e676a5fd) )
390
391382ROM_END
392383
393GAME( 1976, ace, 0, ace, ace, driver_device, 0, ROT0, "Allied Leisure", "Ace", GAME_SUPPORTS_SAVE | GAME_NO_SOUND )
384
385GAMEL(1976, ace, 0, ace, ace, driver_device, 0, ROT0, "Allied Leisure", "Ace", GAME_SUPPORTS_SAVE | GAME_NO_SOUND, layout_ho1880ff ) // color overlay assumed from flyer

Previous 199869 Revisions Next


© 1997-2024 The MAME Team