Previous 15994 Revisions Next

r3773 Monday 8th December, 2008 at 03:44:14 UTC by Nathan Woods
Enabled a few more drivers
[src/emu/cpu/f8]f3853.c f3853.h
[src/mess]mess.mak messdriv.c
[src/mess/audio]cdp1863.c
[src/mess/drivers]mk1.c
[src/mess/machine]pdp1.c
[src/mess/video]cdp1861.c cdp1862.c

src/emu/cpu/f8/f3853.c
r3772r3773
7373}
7474
7575
76void f3853_init(const f3853_config *config)
76void f3853_init(running_machine *machine, const f3853_config *config)
7777{
7878   UINT8 reg=0xfe;
7979   int i;
r3772r3773
9191
9292   f3853.priority_line=FALSE;
9393   f3853.external_interrupt_line=TRUE;
94   f3853.timer = timer_alloc(f3853_timer_callback, NULL);
94   f3853.timer = timer_alloc(machine, f3853_timer_callback, NULL);
9595}
9696
9797CPU_RESET( f3853 )
src/emu/cpu/f8/f3853.h
r3772r3773
2020    void (*interrupt_request)(UINT16 addr, int level);
2121};
2222
23void f3853_init(const f3853_config *config);
23void f3853_init(running_machine *machine, const f3853_config *config);
2424CPU_RESET( f3853 );
2525
2626// ports 0x0c - 0x0f
src/mess/audio/cdp1863.c
r3772r3773
146146   cdp1863->oe = 1;
147147
148148   /* register for state saving */
149   state_save_register_item(machine, "cdp1863", device->tag, 0, cdp1863->oe);
150   state_save_register_item(machine, "cdp1863", device->tag, 0, cdp1863->latch);
151   state_save_register_item(machine, "cdp1863", device->tag, 0, cdp1863->signal);
152   state_save_register_item(machine, "cdp1863", device->tag, 0, cdp1863->incr);
149   state_save_register_device_item(device, 0, cdp1863->oe);
150   state_save_register_device_item(device, 0, cdp1863->latch);
151   state_save_register_device_item(device, 0, cdp1863->signal);
152   state_save_register_device_item(device, 0, cdp1863->incr);
153153
154154   return DEVICE_START_OK;
155155}
src/mess/video/cdp1862.c
r3772r3773
149149   cdp1862_init_palette(device);
150150
151151   /* register for state saving */
152   state_save_register_item(machine, "cdp1862", device->tag, 0, cdp1862->bgcolor);
153   state_save_register_item(machine, "cdp1862", device->tag, 0, cdp1862->con);
152   state_save_register_device_item(device, 0, cdp1862->bgcolor);
153   state_save_register_device_item(device, 0, cdp1862->con);
154   state_save_register_device_item_bitmap(device, 0, cdp1862->bitmap);
154155
155   state_save_register_bitmap("cdp1862", device->tag, 0, "cdp1862_bitmap", cdp1862->bitmap);
156
157156   return DEVICE_START_OK;
158157}
159158
src/mess/video/cdp1861.c
r3772r3773
209209   cdp1861->bitmap = auto_bitmap_alloc(video_screen_get_width(cdp1861->screen), video_screen_get_height(cdp1861->screen), video_screen_get_format(cdp1861->screen));
210210
211211   /* create the timers */
212   cdp1861->int_timer = timer_alloc(machine, cdp1861_int_tick, (void *)device);
213   cdp1861->efx_timer = timer_alloc(machine, cdp1861_efx_tick, (void *)device);
214   cdp1861->dma_timer = timer_alloc(machine, cdp1861_dma_tick, (void *)device);
212   cdp1861->int_timer = timer_alloc(device->machine, cdp1861_int_tick, (void *)device);
213   cdp1861->efx_timer = timer_alloc(device->machine, cdp1861_efx_tick, (void *)device);
214   cdp1861->dma_timer = timer_alloc(device->machine, cdp1861_dma_tick, (void *)device);
215215
216216   /* register for state saving */
217   state_save_register_item(machine, "cdp1861", device->tag, 0, cdp1861->disp);
218   state_save_register_item(machine, "cdp1861", device->tag, 0, cdp1861->dmaout);
219   state_save_register_bitmap("cdp1861", device->tag, 0, "cdp1861->bitmap", cdp1861->bitmap);
217   state_save_register_device_item(device, 0, cdp1861->disp);
218   state_save_register_device_item(device, 0, cdp1861->dmaout);
219   state_save_register_device_item_bitmap(device, 0, cdp1861->bitmap);
220220
221221   return DEVICE_START_OK;
222222}
r3772r3773
227227
228228   timer_adjust_oneshot(cdp1861->int_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_INT_START, 0), 0);
229229   timer_adjust_oneshot(cdp1861->efx_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_EFX_TOP_START, 0), 0);
230   timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(machine->cpu[0], CDP1861_CYCLES_DMA_START), 0);
230   timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(device->machine->cpu[0], CDP1861_CYCLES_DMA_START), 0);
231231   
232232   cdp1861->disp = 0;
233233   cdp1861->dmaout = 0;
src/mess/messdriv.c
r3772r3773
122122   DRIVER( astrocdw )   /* Bally Astrocade (white case)                  */
123123
124124   /* RCA */
125//0128u5   DRIVER( vip )      /* 1977 Cosmac VIP VP-711                     */
126//0128u5   DRIVER( vp111 )      /* 1977 Cosmac VIP VP-111                     */
127//0128u5   DRIVER( studio2 )   /* 1977 Studio II                           */
125   DRIVER( vip )      /* 1977 Cosmac VIP VP-711                     */
126   DRIVER( vp111 )      /* 1977 Cosmac VIP VP-111                     */
127   DRIVER( studio2 )   /* 1977 Studio II                           */
128128//   DRIVER( visicom )
129129//   DRIVER( mpt02s )
130130//   DRIVER( mpt02h )
r3772r3773
556556   DRIVER( pc88srh )   /* PC-8801mkIISR(High res display, VSYNC 24KHz)      */
557557
558558   /* CANTAB */
559//0128u5   DRIVER( jupiter )   /* Jupiter Ace                              */
559   DRIVER( jupiter )   /* Jupiter Ace                              */
560560
561561   /* SORD */
562//0128u5   DRIVER( sordm5 )
563//0128u5   DRIVER( srdm5fd5 )
562   DRIVER( sordm5 )
563   DRIVER( srdm5fd5 )
564564
565565   /* APF Electronics Inc. */
566566   DRIVER( apfm1000 )
r3772r3773
785785
786786
787787   /* NASCOM MICROCOMPUTERS */
788//0128u5   DRIVER( nascom1 )   /* 1978 Nascom 1                           */
789//0128u5   DRIVER( nascom2 )   /* 1979 Nascom 2                           */
788   DRIVER( nascom1 )   /* 1978 Nascom 1                           */
789   DRIVER( nascom2 )   /* 1979 Nascom 2                           */
790790
791791   /* MILES GORDON TECHNOLOGY */
792792   DRIVER( samcoupe )   /* 1989 Sam Coupe                           */
793793
794794   /* MOTOROLA */
795//0128u5   DRIVER( mekd2 )      /* 1977 Motorola Evaluation Kit                  */
795   DRIVER( mekd2 )      /* 1977 Motorola Evaluation Kit                  */
796796
797797   /* DEC */
798//0128u5   DRIVER( pdp1 )      /* 1961 DEC PDP1                           */
798   DRIVER( pdp1 )      /* 1961 DEC PDP1                           */
799799
800800   /* MEMOTECH */
801//0128u5   DRIVER( mtx512 )   /* 1983 Memotech MTX 512                     */
802//0128u5   DRIVER( mtx500 )   /* 1983 Memotech MTX 500                     */
803//0128u5   DRIVER( rs128 )      /* 1984 Memotech RS 128                        */
801   DRIVER( mtx512 )   /* 1983 Memotech MTX 512                     */
802   DRIVER( mtx500 )   /* 1983 Memotech MTX 500                     */
803   DRIVER( rs128 )      /* 1984 Memotech RS 128                        */
804804
805805   /* MATTEL */
806806   DRIVER( intvkbd )   /* 1981 - Mattel Intellivision Keyboard Component   */
r3772r3773
10841084
10851085/****************Games*******************************************************/
10861086   /* Computer Electronic */
1087//0128u5   DRIVER( mk1 )      /* Chess Champion MK I                        */
1087   DRIVER( mk1 )      /* Chess Champion MK I                        */
10881088   /* Quelle International */
1089//0128u5   DRIVER( mk2 )      /* Chess Champion MK II                        */
1089   DRIVER( mk2 )      /* Chess Champion MK II                        */
10901090
10911091   /* Novag */
10921092//0128u5   DRIVER( ssystem3 )   /* Chess Champion Super System III / MK III         */
src/mess/machine/pdp1.c
r3772r3773
11481148      if (parallel_drum.wc)
11491149         delay = attotime_add(delay, PARALLEL_DRUM_WORD_TIME);
11501150   } while (parallel_drum.wc);
1151   cpu_adjust_icount(Machine->cpu[0],-cpu_attotime_to_clocks(machine->cpu[0], delay));
1151   cpu_adjust_icount(Machine->cpu[0],-cpu_attotime_to_clocks(Machine->cpu[0], delay));
11521152   /* if no error, skip */
11531153   cpu_set_reg(Machine->cpu[0], PDP1_PC, cpu_get_reg(Machine->cpu[0], PDP1_PC)+1);
11541154}
src/mess/mess.mak
r3772r3773
414414   $(MESSOBJ)/hp48.a \
415415   $(MESSOBJ)/intv.a \
416416   $(MESSOBJ)/irisha.a \
417   $(MESSOBJ)/jupiter.a \
417418   $(MESSOBJ)/kaypro.a \
418419   $(MESSOBJ)/kim1.a \
419420   $(MESSOBJ)/kramermc.a \
r3772r3773
422423   $(MESSOBJ)/magnavox.a \
423424   $(MESSOBJ)/mbee.a \
424425   $(MESSOBJ)/mc10.a \
426   $(MESSOBJ)/memotech.a \
425427   $(MESSOBJ)/mikro80.a \
428   $(MESSOBJ)/mk1.a \
429   $(MESSOBJ)/mk2.a \
430   $(MESSOBJ)/motorola.a \
431   $(MESSOBJ)/nascom1.a \
426432   $(MESSOBJ)/nec.a \
427433   $(MESSOBJ)/necpc.a \
428434   $(MESSOBJ)/ondra.a \
r3772r3773
430436   $(MESSOBJ)/pc.a \
431437   $(MESSOBJ)/sgi.a \
432438   $(MESSOBJ)/pcshare.a \
439   $(MESSOBJ)/pdp1.a \
433440   $(MESSOBJ)/pel.a \
434441   $(MESSOBJ)/pk8020.a \
435442   $(MESSOBJ)/pmd85.a \
436443   $(MESSOBJ)/pp01.a \
437444   $(MESSOBJ)/primo.a \
438445   $(MESSOBJ)/radio.a \
446   $(MESSOBJ)/rca.a \
439447   $(MESSOBJ)/rt1715.a \
440448   $(MESSOBJ)/sapi1.a \
441449   $(MESSOBJ)/samcoupe.a \
r3772r3773
468476   $(MESSOBJ)/shared.a \
469477
470478#   $(MESSOBJ)/grundy.a \
471#   $(MESSOBJ)/jupiter.a \
472479#   $(MESSOBJ)/luxor.a \
473#   $(MESSOBJ)/memotech.a \
474480#   $(MESSOBJ)/mephisto.a \
475#   $(MESSOBJ)/mk1.a \
476#   $(MESSOBJ)/mk2.a \
477#   $(MESSOBJ)/motorola.a \
478481#   $(MESSOBJ)/multitch.a \
479#   $(MESSOBJ)/nascom1.a \
480482#   $(MESSOBJ)/nintendo.a \
481483#   $(MESSOBJ)/osborne.a \
482484#   $(MESSOBJ)/p2000.a \
483485#   $(MESSOBJ)/pasogo.a \
484#   $(MESSOBJ)/pdp1.a \
485#   $(MESSOBJ)/rca.a \
486486#   $(MESSOBJ)/rockwell.a \
487487#   $(MESSOBJ)/thomson.a \
488488#   $(MESSOBJ)/ti99.a \
src/mess/drivers/mk1.c
r3772r3773
193193};
194194
195195static DRIVER_INIT( mk1 ) {
196    f3853_init( &mk1_config );
196    f3853_init( machine, &mk1_config );
197197}
198198
199199/***************************************************************************

Previous 15994 Revisions Next


© 1998-2018 The MESS Team