Previous 15994 Revisions Next

r4942 Friday 5th June, 2009 at 04:08:25 UTC by Robbbert
Added snk back in
[src/mess]mess.mak messdriv.c
[src/mess/drivers]ng_aes.c
[src/mess/layout]super80.lay*

src/mess/messdriv.c
r4941r4942
210210    DRIVER( pasogo )    /* KOEI PasoGo                                      */
211211
212212    /* SNK */
213//0131u4    DRIVER( ngp )       /* NeoGeo Pocket                                    */
214//0131u4    DRIVER( ngpc )      /* NeoGeo Pocket Color                              */
215//0131u4    DRIVER( aes )       /* NeoGeo AES                                       */
216//0131u4    DRIVER( neocd )     /* NeoGeo CD                                        */
217//0131u4    DRIVER( neocdz )    /* NeoGeo CDZ                                       */
213    DRIVER( ngp )       /* NeoGeo Pocket                                    */
214    DRIVER( ngpc )      /* NeoGeo Pocket Color                              */
215    DRIVER( aes )       /* NeoGeo AES                                       */
216    DRIVER( neocd )     /* NeoGeo CD                                        */
217    DRIVER( neocdz )    /* NeoGeo CDZ                                       */
218218
219219    /* Philips */
220220    DRIVER( cdi )       /* Philips CD-i                                     */
src/mess/mess.mak
r4941r4942
374374   $(MESSOBJ)/xerox.a \
375375   $(MESSOBJ)/z80ne.a \
376376   $(MESSOBJ)/shared.a \
377   $(MESSOBJ)/snk.a \
377378
378#   $(MESSOBJ)/snk.a \
379379
380380
381381
382
383382#-------------------------------------------------
384383# the following files are general components and
385384# shared across a number of drivers
r4941r4942
14691468$(MESS_DRIVERS)/pokemini.o:   $(MESS_LAYOUT)/pokemini.lh
14701469$(MESS_DRIVERS)/px4.o:      $(MESS_LAYOUT)/px4.lh
14711470$(MESS_DRIVERS)/socrates.o:   $(MESS_LAYOUT)/socrates.lh
1471$(MESS_DRIVERS)/super80.o:   $(MESS_LAYOUT)/super80.lh
14721472$(MESS_DRIVERS)/svi318.o:   $(MESS_LAYOUT)/sv328806.lh
14731473$(MESS_DRIVERS)/svision.o:   $(MESS_LAYOUT)/svision.lh
14741474$(MESS_DRIVERS)/sym1.o:      $(MESS_LAYOUT)/sym1.lh
src/mess/layout/super80.lay
r0r4942
1<mamelayout version="2">
2 
3   <element name="red_led">
4      <disk>
5         <color red="1.0" green="0.0" blue="0.0" />
6      </disk>
7   </element>
8   
9   <element name="CASSETTE">
10      <text string="CASSETTE">
11         <color red="1.0" green="1.0" blue="1.0" />
12      </text>
13   </element>
14   <element name="background">
15      <rect>
16         <bounds left="0" top="0" right="1" bottom="1" />
17         <color red="0.0" green="0.0" blue="0.0" />
18      </rect>
19   </element>
20 
21   <view name="Cassette LED">
22   <!--   <bezel name="cass_txt" element="CASSETTE">
23         <bounds left="0" right="100" top="830" bottom="850" />
24      </bezel>
25      <bezel name="cass_led" element="red_led">
26         <bounds left="110" right="130" top="830" bottom="850" />
27      </bezel>
28      <bezel element="background">
29         <bounds left="0" top="850" right="1" bottom="855" />
30      </bezel> -->
31      <screen index="0">
32         <bounds x="0" y="0" width="1400" height="1000" />
33      </screen>
34   </view>
35 
36</mamelayout>
src/mess/drivers/ng_aes.c
r4941r4942
8585 *
8686 *************************************/
8787
88static void calendar_clock(void);
88//static void calendar_clock(void);
8989
9090
9191
r4941r4942
193193
194194static TIMER_CALLBACK( vblank_interrupt_callback )
195195{
196   const device_config *upd4990a = devtag_get_device(machine, "upd4990a");
197
196198   if (LOG_VIDEO_SYSTEM) logerror("+++ VBLANK @ %d,%d\n", video_screen_get_vpos(machine->primary_screen), video_screen_get_hpos(machine->primary_screen));
197199
198200   /* add a timer tick to the pd4990a */
199   calendar_clock();
201   upd4990a_addretrace(upd4990a);
200202
201203   vblank_interrupt_pending = 1;
202204
r4941r4942
302304
303305static WRITE16_HANDLER( io_control_w )
304306{
307   const device_config *upd4990a = devtag_get_device(space->machine, "upd4990a");
308
305309   switch (offset)
306310   {
307311   case 0x00: select_controller(data & 0x00ff); break;
308   case 0x18: logerror("AES has written to output_latch: %d\n", data & 0x00ff); break;   // LED-related in MVS. unused in AES?
309   case 0x20: logerror("AES has written to output_data: %d\n", data & 0x00ff); break;   // LED-related in MVS. unused in AES?
310   case 0x28: pd4990a_control_16_w(space, 0, data, mem_mask); break;
312//   case 0x18: set_output_latch(space->machine, data & 0x00ff); break;
313//   case 0x20: set_output_data(data & 0x00ff); break;
314   case 0x28: upd4990a_control_16_w(upd4990a, 0, data, mem_mask); break;
311315//  case 0x30: break; // coin counters
312316//  case 0x31: break; // coin counters
313317//  case 0x32: break; // coin lockout
r4941r4942
355359 *  uPD4990A calendar chip
356360 *
357361 *************************************/
358
362#if 0
359363static void calendar_init(running_machine *machine)
360364{
361365   /* set the celander IC to 'right now' */
r4941r4942
377381
378382static void calendar_clock(void)
379383{
380   pd4990a_addretrace();
384//   pd4990a_addretrace();
381385}
386#endif
382387
383
384388static CUSTOM_INPUT( get_calendar_status )
385389{
386   const address_space *space = cputag_get_address_space(field->port->machine, "maincpu", ADDRESS_SPACE_PROGRAM);
387   return (pd4990a_databit_r(space, 0) << 1) | pd4990a_testbit_r(space, 0);
390   const device_config *upd4990a = devtag_get_device(field->port->machine, "upd4990a");
391   return (upd4990a_databit_r(upd4990a, 0) << 1) | upd4990a_testbit_r(upd4990a, 0);
388392}
389393
390394
r4941r4942
849853   create_interrupt_timers(machine);
850854
851855   /* initialize the celander IC to 'right now' */
852   calendar_init(machine);
856//   calendar_init(machine);
853857
854858   /* initialize the memcard data structure */
855859   memcard_data = auto_alloc_array_clear(machine, UINT8, MEMCARD_SIZE);
r4941r4942
12691273   MDRV_SOUND_ROUTE(1, "lspeaker",  1.0)
12701274   MDRV_SOUND_ROUTE(2, "rspeaker", 1.0)
12711275
1276   /* NEC uPD4990A RTC */
1277   MDRV_UPD4990A_ADD("upd4990a")
1278
12721279//   MDRV_AES_CARTRIDGE_ADD("aes_multicart")
12731280MACHINE_DRIVER_END
12741281

Previous 15994 Revisions Next


© 1998-2018 The MESS Team