Previous 15994 Revisions Next

r3774 Monday 8th December, 2008 at 06:46:28 UTC by Miodrag Milanović
Almost all enabled, 2 groups left
[src/mess]mess.mak messdriv.c
[src/mess/drivers]newbrain.c osi.c
[src/mess/machine]abc77.c adc080x.c e0516.c gb.c nes.c nes_mmc.c pokemini.c
[src/mess/video]abc800.c abc802.c dl1416.c gb.c

src/mess/video/gb.c
r3773r3774
336336   /* Make sure we're in mode 3 */
337337   if ( ( LCDSTAT & 0x03 ) == 0x03 ) {
338338      /* Calculate number of pixels to render based on time still left on the timer */
339      UINT32 cycles_to_go = ATTOTIME_TO_CYCLES( 0, timer_timeleft( gb_lcd.lcd_timer ) );
339      UINT32 cycles_to_go = cpu_attotime_to_clocks(machine->cpu[0], timer_timeleft( gb_lcd.lcd_timer ) );
340340      int l = 0;
341341
342342      if ( gb_lcd.start_x < 0 ) {
r3773r3774
625625
626626   if ( ( LCDSTAT & 0x03 ) == 0x03 ) {
627627      /* Calcuate number of pixels to render based on time still left on the timer */
628      UINT32 cycles_to_go = ATTOTIME_TO_CYCLES( 0, timer_timeleft( gb_lcd.lcd_timer ) );
628      UINT32 cycles_to_go = cpu_attotime_to_clocks(machine->cpu[0], timer_timeleft( gb_lcd.lcd_timer ) );
629629      int l = 0;
630630
631631      if ( gb_lcd.start_x < 0 ) {
r3773r3774
896896
897897   if ( ( LCDSTAT & 0x03 ) == 0x03 ) {
898898      /* Calcuate number of pixels to render based on time still left on the timer */
899      UINT32 cycles_to_go = ATTOTIME_TO_CYCLES( 0, timer_timeleft( gb_lcd.lcd_timer ) );
899      UINT32 cycles_to_go = cpu_attotime_to_clocks(machine->cpu[0], timer_timeleft( gb_lcd.lcd_timer ) );
900900      int l = 0;
901901
902902      if ( gb_lcd.start_x < 0 ) {
r3773r3774
13861386              ( ( ! gb_lcd.line_irq && gb_lcd.delayed_line_irq ) || ! ( LCDSTAT & 0x40 ) ) ) {
13871387            cpu_set_input_line( machine->cpu[0], LCD_INT, HOLD_LINE );
13881388         }
1389         timer_adjust_oneshot(gb_lcd.lcd_timer, cpu_clocks_to_attotime(machine->cpu[0], 196 - gb_lcd.scrollx_adjust - gb_lcd.sprite_cycles,0), GB_LCD_STATE_LYXX_M0_PRE_INC);
1389         timer_adjust_oneshot(gb_lcd.lcd_timer, cpu_clocks_to_attotime(machine->cpu[0], 196 - gb_lcd.scrollx_adjust - gb_lcd.sprite_cycles), GB_LCD_STATE_LYXX_M0_PRE_INC);
13901390         break;
13911391      case GB_LCD_STATE_LYXX_M0_PRE_INC:   /* Just before incrementing the line counter go to mode 2 internally */
13921392         if ( CURLINE < 143 ) {
src/mess/video/abc800.c
r3773r3774
1<<<<<<< .mine
21/*****************************************************************************
32 *
43 * video/abc800.c
r3773r3774
221220   state_save_register_global_pointer(machine, state->charram, ABC800M_CHAR_RAM_SIZE);
222221   state_save_register_global_pointer(machine, state->videoram, ABC800_VIDEO_RAM_SIZE);
223222
224   state_save_register_global(state->hrs);
225   state_save_register_global(state->fgctl);
223   state_save_register_global(machine, state->hrs);
224   state_save_register_global(machine, state->fgctl);
226225}
227226
228227static VIDEO_START( abc800c )
r3773r3774
243242   state_save_register_global_pointer(machine, state->charram, ABC800C_CHAR_RAM_SIZE);
244243   state_save_register_global_pointer(machine, state->videoram, ABC800_VIDEO_RAM_SIZE);
245244
246   state_save_register_global(state->hrs);
247   state_save_register_global(state->fgctl);
245   state_save_register_global(machine, state->hrs);
246   state_save_register_global(machine, state->fgctl);
248247}
249248
250249/* Video Update */
r3773r3774
257256   video_screen_set_visarea(screen, 0, 767, 0, 311);
258257
259258   /* clear screen */
260   fillbitmap(bitmap, get_black_pen(screen->machine), cliprect);
261
262   /* draw HR graphics */
263   abc800m_hr_update(screen->machine, bitmap, cliprect);
264   
265   if (!BIT(state->fgctl, 7))
266   {
267      /* draw text */
268      mc6845_update(state->mc6845, bitmap, cliprect);
269   }
270   
271   return 0;
272}
273
274static VIDEO_UPDATE( abc800c )
275{
276   abc800_state *state = screen->machine->driver_data;
277
278   /* clear screen */
279   fillbitmap(bitmap, get_black_pen(screen->machine), cliprect);
280
281   /* draw HR graphics */
282   abc800c_hr_update(screen->machine, bitmap, cliprect);
283   
284   if (!BIT(state->fgctl, 7))
285   {
286      /* draw text */
287      abc800c_update(screen->machine, bitmap, cliprect);
288   }
289   
290   return 0;
291}
292
293/* Machine Drivers */
294
295MACHINE_DRIVER_START( abc800m_video )
296   MDRV_DEVICE_ADD(MC6845_TAG, MC6845)
297   MDRV_DEVICE_CONFIG(abc800m_mc6845_interface)
298
299   MDRV_SCREEN_ADD(SCREEN_TAG, RASTER)
300   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
301
302   MDRV_SCREEN_REFRESH_RATE(60)
303   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
304   MDRV_SCREEN_SIZE(640, 400)
305   MDRV_SCREEN_VISIBLE_AREA(0,640-1, 0, 400-1)
306
307   MDRV_PALETTE_LENGTH(2)
308
309   MDRV_PALETTE_INIT(abc800m)
310   MDRV_VIDEO_START(abc800m)
311   MDRV_VIDEO_UPDATE(abc800m)
312MACHINE_DRIVER_END
313
314MACHINE_DRIVER_START( abc800c_video )
315   MDRV_SCREEN_ADD(SCREEN_TAG, RASTER)
316   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
317
318   MDRV_SCREEN_REFRESH_RATE(60)
319   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
320   MDRV_SCREEN_SIZE(640, 400)
321   MDRV_SCREEN_VISIBLE_AREA(0,640-1, 0, 400-1)
322
323   MDRV_PALETTE_LENGTH(8)
324
325   MDRV_PALETTE_INIT(abc800c)
326   MDRV_VIDEO_START(abc800c)
327   MDRV_VIDEO_UPDATE(abc800c)
328MACHINE_DRIVER_END
329=======
330/*****************************************************************************
331 *
332 * video/abc800.c
333 *
334 ****************************************************************************/
335
336/*
337
338   TODO:
339
340   - abc800c
341
342*/
343
344#include "driver.h"
345#include "includes/abc80x.h"
346#include "machine/z80dart.h"
347#include "video/mc6845.h"
348
349/* Character Memory */
350
351READ8_HANDLER( abc800_charram_r )
352{
353   abc800_state *state = space->machine->driver_data;
354
355   return state->charram[offset];
356}
357
358WRITE8_HANDLER( abc800_charram_w )
359{
360   abc800_state *state = space->machine->driver_data;
361
362   state->charram[offset] = data;
363}
364
365/* Palette Initialization */
366
367static PALETTE_INIT( abc800m )
368{
369   palette_set_color_rgb(machine, 0, 0x00, 0x00, 0x00); // black
370   palette_set_color_rgb(machine, 1, 0xff, 0xff, 0x00); // yellow
371}
372
373static PALETTE_INIT( abc800c )
374{
375   palette_set_color_rgb(machine, 0, 0x00, 0x00, 0x00); // black
376   palette_set_color_rgb(machine, 1, 0x00, 0x00, 0xff); // blue
377   palette_set_color_rgb(machine, 2, 0xff, 0x00, 0x00); // red
378   palette_set_color_rgb(machine, 3, 0xff, 0x00, 0xff); // magenta
379   palette_set_color_rgb(machine, 4, 0x00, 0xff, 0x00); // green
380   palette_set_color_rgb(machine, 5, 0x00, 0xff, 0xff); // cyan
381   palette_set_color_rgb(machine, 6, 0xff, 0xff, 0x00); // yellow
382   palette_set_color_rgb(machine, 7, 0xff, 0xff, 0xff); // white
383}
384
385/* External Interface */
386
387WRITE8_HANDLER( abc800_hrs_w )
388{
389   abc800_state *state = space->machine->driver_data;
390
391   state->hrs = data;
392}
393
394WRITE8_HANDLER( abc800_hrc_w )
395{
396   abc800_state *state = space->machine->driver_data;
397
398   state->fgctl = data;
399}
400
401/* MC6845 Row Update */
402
403static MC6845_UPDATE_ROW( abc800m_update_row )
404{
405   abc800_state *state = device->machine->driver_data;
406
407   int column;
408   
409   /* prevent wraparound */
410   if (y >= 240) return;
411   
412   y += 29;
413
414   for (column = 0; column < x_count; column++)
415   {
416      int bit;
417
418      UINT16 address = (state->charram[(ma + column) & 0x7ff] << 4) | (ra & 0x0f);
419      UINT8 data = (state->char_rom[address & 0x7ff] & 0x3f);
420
421      if (column == cursor_x)
422      {
423         data = 0x3f;
424      }
425
426      data <<= 2;
427
428      for (bit = 0; bit < ABC800_CHAR_WIDTH; bit++)
429      {
430         int x = 115 + (column * ABC800_CHAR_WIDTH) + bit;
431
432         if (BIT(data, 7))
433         {
434            *BITMAP_ADDR16(bitmap, y, x) = 1;
435         }
436
437         data <<= 1;
438      }
439   }
440}
441
442static MC6845_ON_VSYNC_CHANGED(abc800_vsync_changed)
443{
444   abc800_state *state = device->machine->driver_data;
445
446   z80dart_ri_w(state->z80dart, 1, vsync);
447}
448
449/* MC6845 Interfaces */
450
451static const mc6845_interface abc800m_mc6845_interface = {
452   SCREEN_TAG,
453   ABC800_CCLK,
454   ABC800_CHAR_WIDTH,
455   NULL,
456   abc800m_update_row,
457   NULL,
458   NULL,
459   NULL,
460   abc800_vsync_changed
461};
462
463/* ABC 800 C */
464
465static void abc800c_update(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
466{
467}
468
469/* HR */
470
471static void abc800m_hr_update(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
472{
473   abc800_state *state = machine->driver_data;
474
475   UINT16 addr = 0;
476   int sx, y, dot;
477
478   for (y = state->hrs + 29; y < MIN(cliprect->max_y + 1, state->hrs + 29 + 240); y++)
479   {
480      int x = 115;
481
482      for (sx = 0; sx < 64; sx++)
483      {
484         UINT8 data = state->videoram[addr++];
485
486         for (dot = 0; dot < 4; dot++)
487         {
488            UINT16 fgctl_addr = ((state->fgctl & 0x7f) << 2) | ((data >> 6) & 0x03);
489            int color = (state->fgctl_prom[fgctl_addr] & 0x07) ? 1 : 0;
490
491            *BITMAP_ADDR16(bitmap, y, x++) = color;
492            *BITMAP_ADDR16(bitmap, y, x++) = color;
493
494            data <<= 2;
495         }
496      }
497   }
498}
499
500static void abc800c_hr_update(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
501{
502   abc800_state *state = machine->driver_data;
503
504   UINT16 addr = 0;
505   int sx, y, dot;
506
507   for (y = state->hrs; y < MIN(cliprect->max_y + 1, state->hrs + 240); y++)
508   {
509      int x = 0;
510
511      for (sx = 0; sx < 64; sx++)
512      {
513         UINT8 data = state->videoram[addr++];
514
515         for (dot = 0; dot < 4; dot++)
516         {
517            UINT16 fgctl_addr = ((state->fgctl & 0x7f) << 2) | ((data >> 6) & 0x03);
518            int color = state->fgctl_prom[fgctl_addr] & 0x07;
519
520            *BITMAP_ADDR16(bitmap, y, x++) = color;
521
522            data <<= 2;
523         }
524      }
525   }
526}
527
528/* Video Start */
529
530static VIDEO_START( abc800m )
531{
532   abc800_state *state = machine->driver_data;
533   
534   /* allocate memory */
535
536   state->charram = auto_malloc(ABC800M_CHAR_RAM_SIZE);
537
538   /* find devices */
539
540   state->mc6845 = devtag_get_device(machine, MC6845, MC6845_TAG);
541
542   /* find memory regions */
543
544   state->char_rom = memory_region(machine, "chargen");
545   state->fgctl_prom = memory_region(machine, "fgctl");
546
547   /* register for state saving */
548
549   state_save_register_global_pointer(machine, state->charram, ABC800M_CHAR_RAM_SIZE);
550   state_save_register_global_pointer(machine, state->videoram, ABC800_VIDEO_RAM_SIZE);
551
552   state_save_register_global(state->hrs);
553   state_save_register_global(state->fgctl);
554}
555
556static VIDEO_START( abc800c )
557{
558   abc800_state *state = machine->driver_data;
559   
560   /* allocate memory */
561
562   state->charram = auto_malloc(ABC800C_CHAR_RAM_SIZE);
563
564   /* find memory regions */
565
566   state->char_rom = memory_region(machine, "chargen");
567   state->fgctl_prom = memory_region(machine, "fgctl");
568
569   /* register for state saving */
570
571   state_save_register_global_pointer(machine, state->charram, ABC800C_CHAR_RAM_SIZE);
572   state_save_register_global_pointer(machine, state->videoram, ABC800_VIDEO_RAM_SIZE);
573
574   state_save_register_global(state->hrs);
575   state_save_register_global(state->fgctl);
576}
577
578/* Video Update */
579
580static VIDEO_UPDATE( abc800m )
581{
582   abc800_state *state = screen->machine->driver_data;
583
584   /* expand visible area to workaround MC6845 */
585   video_screen_set_visarea(screen, 0, 767, 0, 311);
586
587   /* clear screen */
588259   bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine));
589260
590261   /* draw HR graphics */
r3773r3774
654325   MDRV_VIDEO_START(abc800c)
655326   MDRV_VIDEO_UPDATE(abc800c)
656327MACHINE_DRIVER_END
657>>>>>>> .r3745
src/mess/video/abc802.c
r3773r3774
234234
235235   state_save_register_global_pointer(machine, state->charram, ABC802_CHAR_RAM_SIZE);
236236
237   state_save_register_global(state->flshclk_ctr);
238   state_save_register_global(state->flshclk);
239   state_save_register_global(state->mux80_40);
237   state_save_register_global(machine, state->flshclk_ctr);
238   state_save_register_global(machine, state->flshclk);
239   state_save_register_global(machine, state->mux80_40);
240240}
241241
242242/* Video Update */
src/mess/video/dl1416.c
r3773r3774
131131   dl1416->intf = device->static_config;
132132
133133   /* register for state saving */
134   state_save_register_item(machine, "dl1416", NULL, 0, dl1416->chip_enable);
135   state_save_register_item(machine, "dl1416", NULL, 0, dl1416->cursor_enable);
136   state_save_register_item(machine, "dl1416", NULL, 0, dl1416->write_enable);
137   state_save_register_item_array(machine, "dl1416", NULL, 0, dl1416->cursor_ram);
134   state_save_register_item(device->machine, "dl1416", NULL, 0, dl1416->chip_enable);
135   state_save_register_item(device->machine, "dl1416", NULL, 0, dl1416->cursor_enable);
136   state_save_register_item(device->machine, "dl1416", NULL, 0, dl1416->write_enable);
137   state_save_register_item_array(device->machine, "dl1416", NULL, 0, dl1416->cursor_ram);
138138   return DEVICE_START_OK;
139139}
140140
src/mess/messdriv.c
r3773r3774
6363//   DRIVER( falcon40 )   /* Atari Falcon040 (prototype)                  */
6464
6565   /* NINTENDO */
66//0128u5   DRIVER( nes )      /* Nintendo Entertainment System               */
67//0128u5   DRIVER( nespal )   /* Nintendo Entertainment System               */
68//0128u5   DRIVER( famicom )
69//0128u5   DRIVER( famitwin )   /* Sharp Famicom Twin System                  */
70//0128u5   DRIVER( gameboy )   /* Nintendo Game Boy Handheld                  */
71//0128u5   DRIVER( supergb )   /* Nintendo Super Game Boy SNES Cartridge         */
72//0128u5   DRIVER( gbpocket )   /* Nintendo Game Boy Pocket Handheld            */
73//0128u5   DRIVER( gbcolor )   /* Nintendo Game Boy Color Handheld               */
74//0128u5   DRIVER( snes )      /* Nintendo Super Nintendo NTSC                  */
75//0128u5   DRIVER( snespal )   /* Nintendo Super Nintendo PAL                  */
76//0128u5   DRIVER( n64 )      /* Nintendo N64                              */
77//0128u5   DRIVER( pokemini )   /* Nintendo Pokemon Mini                     */
66   DRIVER( nes )      /* Nintendo Entertainment System               */
67   DRIVER( nespal )   /* Nintendo Entertainment System               */
68   DRIVER( famicom )
69   DRIVER( famitwin )   /* Sharp Famicom Twin System                  */
70   DRIVER( gameboy )   /* Nintendo Game Boy Handheld                  */
71   DRIVER( supergb )   /* Nintendo Super Game Boy SNES Cartridge         */
72   DRIVER( gbpocket )   /* Nintendo Game Boy Pocket Handheld            */
73   DRIVER( gbcolor )   /* Nintendo Game Boy Color Handheld               */
74   DRIVER( snes )      /* Nintendo Super Nintendo NTSC                  */
75   DRIVER( snespal )   /* Nintendo Super Nintendo PAL                  */
76   DRIVER( n64 )      /* Nintendo N64                              */
77   DRIVER( pokemini )   /* Nintendo Pokemon Mini                     */
7878
79//0128u5   DRIVER( megaduck )   /* Megaduck                                 */
79   DRIVER( megaduck )   /* Megaduck                                 */
8080
8181   /* SEGA */
8282   DRIVER( sg1000 )   /* Sega SG-1000 (Japan)                        */
r3773r3774
162162   DRIVER( intvsrs )   /* Intellivision (Sears License) - 19??            */
163163
164164   /* ENTEX */
165//0128u5   DRIVER( advision )   /* Adventurevision                           */
165   DRIVER( advision )   /* Adventurevision                           */
166166
167167   /* CAPCOM */
168//0128u5   DRIVER( sfzch )      /* CPS Changer (Street Fighter ZERO)            */
168   DRIVER( sfzch )      /* CPS Changer (Street Fighter ZERO)            */
169169
170170   /* MAGNAVOX */
171171   DRIVER( odyssey2 )   /* Magnavox Odyssey 2 - 1978-1983               */
172172
173173   /* Hartung, Watara, ...*/
174//0128u5   DRIVER( gmaster )   /* Hartung Gamemaster                         */
174   DRIVER( gmaster )   /* Hartung Gamemaster                         */
175175
176176   /* WATARA */
177//0128u5   DRIVER( svision )   /* Supervision Handheld                        */
178//0128u5   DRIVER( svisions )
179//0128u5   DRIVER( svisionp )
180//0128u5   DRIVER( svisionn )
181//0128u5   DRIVER( tvlinkp )
177   DRIVER( svision )   /* Supervision Handheld                        */
178   DRIVER( svisions )
179   DRIVER( svisionp )
180   DRIVER( svisionn )
181   DRIVER( tvlinkp )
182182
183183   /* INTERTON */
184184   DRIVER( vc4000 )   /* Interton vc4000                           */
185185
186186   /* BANDAI */
187//0128u5   DRIVER( wswan )      /* Bandai WonderSwan Handheld                  */
188//0128u5   DRIVER( wscolor )   /* Bandai WonderSwan Color Handheld               */
187   DRIVER( wswan )      /* Bandai WonderSwan Handheld                  */
188   DRIVER( wscolor )   /* Bandai WonderSwan Color Handheld               */
189189
190190   /* EPOCH */
191191   DRIVER( gamepock )   /* Epoch Game Pocket Computer                  */
192192
193193   /* KOEI */
194//0128u5   DRIVER( pasogo )   /* KOEI PasoGo                              */
194   DRIVER( pasogo )   /* KOEI PasoGo                              */
195195
196196
197197/****************COMPUTERS***************************************************/
r3773r3774
303303
304304   /* COMMODORE */
305305   DRIVER( kim1 )      /* Commodore (MOS) KIM-1 1975                  */
306//0128u5   DRIVER( sym1 )      /* Synertek SYM-1                           */
307//0128u5   DRIVER( aim65 )      /* Rockwell AIM65                           */
306   DRIVER( sym1 )      /* Synertek SYM-1                           */
307   DRIVER( aim65 )      /* Rockwell AIM65                           */
308308
309309   DRIVER( pet2001 )   /* PET 2001                                 */
310310   DRIVER( pet2001n )   /* PET 2001-N                              */
r3773r3774
411411   DRIVER( c64dx )      /* 1991 C65 / C64DX (Prototype, German PAL)         */
412412
413413   /* IBM PC & Clones */
414//0128u5   DRIVER( ibm5150 )   /* 1981   IBM 5150                           */
415//0128u5   DRIVER( dgone )      /* 1984 Data General/One */
416//0128u5   DRIVER( pcmda )      /* 1987 PC with MDA                           */
417//0128u5   DRIVER( pcherc )   /* 1987 PC with Hercules (for testing hercules)      */
418//0128u5   DRIVER( pc )      /* 1987 PC with CGA                           */
419//0128u5   DRIVER( bondwell )   /* 1985   Bondwell (CGA)                        */
420//0128u5   DRIVER( europc )   /* 1988   Schneider Euro PC (CGA or Hercules)         */
414   DRIVER( ibm5150 )   /* 1981   IBM 5150                           */
415   DRIVER( dgone )      /* 1984 Data General/One */
416   DRIVER( pcmda )      /* 1987 PC with MDA                           */
417   DRIVER( pcherc )   /* 1987 PC with Hercules (for testing hercules)      */
418   DRIVER( pc )      /* 1987 PC with CGA                           */
419   DRIVER( bondwell )   /* 1985   Bondwell (CGA)                        */
420   DRIVER( europc )   /* 1988   Schneider Euro PC (CGA or Hercules)         */
421421
422422   /* pc junior */
423//0128u5   DRIVER( ibmpcjr )   /* 1984 IBM PC Jr                           */
424//0128u5   DRIVER( t1000hx )   /* 1987 Tandy 1000HX (similiar to PCJr)            */
425//0128u5   DRIVER( t1000sx )   /* 1987 Tandy 1000SX (similiar to PCJr)            */
423   DRIVER( ibmpcjr )   /* 1984 IBM PC Jr                           */
424   DRIVER( t1000hx )   /* 1987 Tandy 1000HX (similiar to PCJr)            */
425   DRIVER( t1000sx )   /* 1987 Tandy 1000SX (similiar to PCJr)            */
426426
427427   /* xt */
428//0128u5   DRIVER( ibm5160 )   /* 1982   IBM XT 5160                           */
429//0128u5   DRIVER( ibm5162 )   /* 1986 IBM XT 5162 (XT w/80286)               */
430//0128u5   DRIVER( pc200 )      /* 1988 Sinclair PC200                        */
431//0128u5   DRIVER( pc20 )      /* 1988 Amstrad PC20                        */
432//0128u5   DRIVER( ppc512 )   /* 1987 Amstrad PPC512                        */
433//0128u5   DRIVER( ppc640 )   /* 1987 Amstrad PPC640                        */
434//0128u5   DRIVER( pc1512 )   /* 1986 Amstrad PC1512 v1 (CGA compatible)         */
435//0128u5   DRIVER( pc1512v2 )   /* 1986 Amstrad PC1512 v2 (CGA compatible)         */
436//0128u5   DRIVER( pc1640 )   /* 1987 Amstrad PC1640 (EGA compatible)            */
428   DRIVER( ibm5160 )   /* 1982   IBM XT 5160                           */
429   DRIVER( ibm5162 )   /* 1986 IBM XT 5162 (XT w/80286)               */
430   DRIVER( pc200 )      /* 1988 Sinclair PC200                        */
431   DRIVER( pc20 )      /* 1988 Amstrad PC20                        */
432   DRIVER( ppc512 )   /* 1987 Amstrad PPC512                        */
433   DRIVER( ppc640 )   /* 1987 Amstrad PPC640                        */
434   DRIVER( pc1512 )   /* 1986 Amstrad PC1512 v1 (CGA compatible)         */
435   DRIVER( pc1512v2 )   /* 1986 Amstrad PC1512 v2 (CGA compatible)         */
436   DRIVER( pc1640 )   /* 1987 Amstrad PC1640 (EGA compatible)            */
437437
438//0128u5   DRIVER( xtvga )      /* 198? PC-XT (VGA, MF2 Keyboard)               */
438   DRIVER( xtvga )      /* 198? PC-XT (VGA, MF2 Keyboard)               */
439439
440440   /* at */
441//0128u5   DRIVER( ibm5170 )   /* 1984 IBM PC/AT 5170, original 6 MHz model      */
442//0128u5   DRIVER( ibm5170a )   /* 1985   IBM PC/AT 5170, enhanced 8 MHz model      */
443//0128u5   DRIVER( i8530286 )   /* 1988 IBM PS2 Model 30 286 (VGA)               */
444//0128u5   DRIVER( at )      /* 1987 AMI Bios and Diagnostics               */
445//0128u5   DRIVER( atvga )      /* 19?? AT VGA                              */
446//0128u5   DRIVER( neat )      /* 1989   New Enhanced AT chipset, AMI BIOS         */
447//0128u5   DRIVER( at386 )      /* 19?? IBM AT 386                           */
448//0128u5   DRIVER( at486 )      /* 19?? IBM AT 486                           */
449//0128u5   DRIVER( at586 )      /* 19?? AT 586                              */
441   DRIVER( ibm5170 )   /* 1984 IBM PC/AT 5170, original 6 MHz model      */
442   DRIVER( ibm5170a )   /* 1985   IBM PC/AT 5170, enhanced 8 MHz model      */
443   DRIVER( i8530286 )   /* 1988 IBM PS2 Model 30 286 (VGA)               */
444   DRIVER( at )      /* 1987 AMI Bios and Diagnostics               */
445   DRIVER( atvga )      /* 19?? AT VGA                              */
446   DRIVER( neat )      /* 1989   New Enhanced AT chipset, AMI BIOS         */
447   DRIVER( at386 )      /* 19?? IBM AT 386                           */
448   DRIVER( at486 )      /* 19?? IBM AT 486                           */
449   DRIVER( at586 )      /* 19?? AT 586                              */
450450
451451   /* OSBORNE */
452//0128u5   DRIVER( osborne1 )   /* 1981 Osborne-1                           */
452   DRIVER( osborne1 )   /* 1981 Osborne-1                           */
453453
454454   /* SINCLAIR RESEARCH */
455455   DRIVER( zx80 )      /* 1980 Sinclair ZX-80                        */
r3773r3774
567567   DRIVER( apfimag )
568568
569569   /* Tatung */
570//0128u5   DRIVER( einstein )
571//0128u5   DRIVER( einstei2 )
570   DRIVER( einstein )
571   DRIVER( einstei2 )
572572
573573   /* INTELLIGENT SOFTWARE */
574574   DRIVER( ep128 )      /* Enterprise 128 k                           */
r3773r3774
640640   DRIVER( laser700 )   /* 1984? Laser 700                           */
641641
642642   /* TANGERINE */
643//0128u5   DRIVER( microtan )   /* 1979 Microtan 65                           */
643   DRIVER( microtan )   /* 1979 Microtan 65                           */
644644
645//0128u5   DRIVER( oric1 )      /* 1983 Oric 1                              */
646//0128u5   DRIVER( orica )      /* 1984 Oric Atmos                           */
647//0128u5   DRIVER( prav8d )   /* 1985 Pravetz 8D                           */
648//0128u5   DRIVER( prav8dd )   /* 1989 Pravetz 8D (Disk ROM)                  */
649//0128u5   DRIVER( telstrat )   /* ??? Oric Telestrat/Stratos                  */
645   DRIVER( oric1 )      /* 1983 Oric 1                              */
646   DRIVER( orica )      /* 1984 Oric Atmos                           */
647   DRIVER( prav8d )   /* 1985 Pravetz 8D                           */
648   DRIVER( prav8dd )   /* 1989 Pravetz 8D (Disk ROM)                  */
649   DRIVER( telstrat )   /* ??? Oric Telestrat/Stratos                  */
650650
651651   /* PHILIPS */
652//0128u5   DRIVER( p2000t )   /* 1980 P2000T                              */
653//0128u5   DRIVER( p2000m )   /* 1980 P2000M                              */
654//0128u5   DRIVER( videopac )   /* 1979 Videopac G7000/C52                     */
655//0128u5   DRIVER( g7400 )      /* 1983 Videopac Plus G7400                     */
652   DRIVER( p2000t )   /* 1980 P2000T                              */
653   DRIVER( p2000m )   /* 1980 P2000M                              */
654   DRIVER( videopac )   /* 1979 Videopac G7000/C52                     */
655   DRIVER( g7400 )      /* 1983 Videopac Plus G7400                     */
656656
657657   /* COMPUKIT */
658//0128u5   DRIVER( uk101 )      /* 1979 UK101                              */
658   DRIVER( uk101 )      /* 1979 UK101                              */
659659
660660   /* OHIO SCIENTIFIC */
661//0128u5   DRIVER( sb2m600b )   /* 1979 Superboard II                        */
661   DRIVER( sb2m600b )   /* 1979 Superboard II                        */
662662
663663   /* ASCII & MICROSOFT */
664//0128u5   DRIVER( msx )      /* 1983 MSX                               */
665//0128u5   DRIVER( ax170 )
666//0128u5   DRIVER( canonv10 )
667//0128u5   DRIVER( canonv20 )
668//0128u5   DRIVER( dpc100 )   /* 1984 MSX Korea                           */
669//0128u5   DRIVER( dpc180 )   /* 1984 MSX Korea                           */
670//0128u5   DRIVER( dpc200 )   /* 1984 MSX Korea                           */
671//0128u5   DRIVER( gsfc200 )
672//0128u5   DRIVER( expert10 )   /* 1983 MSX Brazil                           */
673//0128u5   DRIVER( expert11 )   /* 1984 MSX Brazil                           */
674//0128u5   DRIVER( expert13 )   /* 1984 MSX Brazil                           */
675//0128u5   DRIVER( expertdp )   /* 1985 MSX Brazil                           */
676//0128u5   DRIVER( expertpl )   /* 1984 MSX Brazil                           */
677//0128u5   DRIVER( jvchc7gb )
678//0128u5   DRIVER( mlf80 )
679//0128u5   DRIVER( mlfx1 )
680//0128u5   DRIVER( cf1200 )   /* 1984 MSX Japan                           */
681//0128u5   DRIVER( cf2000 )   /* 1983 MSX Japan                           */
682//0128u5   DRIVER( cf2700 )   /* 1984 MSX Japan                           */
683//0128u5   DRIVER( cf3000 )   /* 1984 MSX Japan                           */
684//0128u5   DRIVER( cf3300 )   /* 1985 MSX Japan                           */
685//0128u5   DRIVER( fs1300 )   /* 1985 MSX Japan                           */
686//0128u5   DRIVER( fs4000 )   /* 1985 MSX Japan                           */
687//0128u5   DRIVER( nms801 )
688//0128u5   DRIVER( vg802000 )
689//0128u5   DRIVER( vg802020 )   /* 1985 MSX                                 */
690//0128u5   DRIVER( piopx7 )   
691//0128u5   DRIVER( mpc100 )
692//0128u5   DRIVER( hotbit11 )   /* 1985 MSX Brazil                           */
693//0128u5   DRIVER( hotbit12 )   /* 1985 MSX   Brazil                           */
694//0128u5   DRIVER( hotbi13b )   /* 1985 MSX   Brazil                           */
695//0128u5   DRIVER( hotbi13p )   /* 1985 MSX   Brazil                           */
696//0128u5   DRIVER( hotbit20 )   /* 1986 MSX2 Brazil                           */
697//0128u5   DRIVER( hb201 )      /* 1985 MSX Japan                           */
698//0128u5   DRIVER( hb201p )   /* 1985 MSX                                 */
699//0128u5   DRIVER( hb501p )   /* 1984 MSX                                 */
700//0128u5   DRIVER( hb55d )      /* 1983 MSX Germany                           */
701//0128u5   DRIVER( hb55p )      /* 1983 MSX                                 */
702//0128u5   DRIVER( hb75d )      /* 1983 MSX Germany                           */
703//0128u5   DRIVER( hb75p )      /* 1983 MSX                                 */
704//0128u5   DRIVER( svi728 )   /* 1985 MSX                                 */
705//0128u5   DRIVER( svi738 )   /* 1985 MSX                                 */
706//0128u5   DRIVER( svi738sw )   /* 1985 MSX                                 */
707//0128u5   DRIVER( tadpc200 )
708//0128u5   DRIVER( tadpc20a )
709//0128u5   DRIVER( hx10 )      /* 1984 MSX                                 */
710//0128u5   DRIVER( hx10s )      /* 1984 MSX                                 */
711//0128u5   DRIVER( hx20 )      /* 1984 MSX                                 */
712//0128u5   DRIVER( cx5m )
713//0128u5   DRIVER( cx5m128 )
714//0128u5   DRIVER( cx5m2 )   
715//0128u5   DRIVER( yis303 )
716//0128u5   DRIVER( yis503 )
717//0128u5   DRIVER( yis503ii )
718//0128u5   DRIVER( yis503m )
719//0128u5   DRIVER( yc64 )
720   
721   
722//0128u5   DRIVER( msx2 )      /* 1985 MSX2                              */
723//0128u5   DRIVER( ax350 )
724//0128u5   DRIVER( ax370 )
725//0128u5   DRIVER( hbf9p )      /* 1985 MSX2                              */
726//0128u5   DRIVER( hbf9s )      /* 1985 MSX2                              */
727//0128u5   DRIVER( hbf500p )   /* 1985 MSX2                              */
728//0128u5   DRIVER( hbf700d )   /* 1985 MSX2 Germany                        */
729//0128u5   DRIVER( hbf700f )   /* 1985 MSX2                   */
730//0128u5   DRIVER( hbf700p )   /* 1985 MSX2                              */
731//0128u5   DRIVER( hbf700s )   /* 1985 MSX2 Spain                           */
732//0128u5   DRIVER( hbg900ap )   /* 1986 MSX2                              */
733//0128u5   DRIVER( hbg900p )   /* 1986 MSX2                              */
734//0128u5   DRIVER( nms8220 )   /* 1986 MSX2                              */
735//0128u5   DRIVER( nms8220a )   /* 1986 MSX2                              */
736//0128u5   DRIVER( vg8230 )   /* 1986 MSX2                              */
737//0128u5   DRIVER( vg8235 )   /* 1986 MSX2                              */
738//0128u5   DRIVER( vg8235f)   /* 1986 MSX2                              */
739//0128u5   DRIVER( vg8240)   /* 1986 MSX2                              */
740//0128u5   DRIVER( nms8245 )   /* 1986 MSX2                              */
741//0128u5   DRIVER( nms8245f)   /* 1986 MSX2                              */
742//0128u5   DRIVER( nms8250 )   /* 1986 MSX2                              */
743//0128u5   DRIVER( nms8255 )   /* 1986 MSX2                              */
744//0128u5   DRIVER( nms8280 )   /* 1986 MSX2                              */
745//0128u5   DRIVER( nms8280g)   /* 1986 MSX2                              */
746//0128u5   DRIVER( tpc310)     /* 1986 MSX2                              */
747//0128u5   DRIVER( hx23)       /* 1986 MSX2                              */
748//0128u5   DRIVER( hx23f)     /* 1986 MSX2                              */
749//0128u5   DRIVER( cx7m)       /* 1986 MSX2                              */
750//0128u5   DRIVER( cx7m128)   /* 1986 MSX2                              */
751//0128u5   DRIVER( fs5500 )   /* 1985 MSX2 Japan                           */
752//0128u5   DRIVER( fs4500 )   /* 1986 MSX2 Japan                           */
753//0128u5   DRIVER( fs4700 )   /* 1986 MSX2 Japan                           */
754//0128u5   DRIVER( fs5000 )   /* 1986 MSX2 Japan                           */
755//0128u5   DRIVER( fs4600 )   /* 1986 MSX2 Japan                           */
756//0128u5   DRIVER( fsa1 )      /* 1986 MSX2 Japan                           */
757//0128u5   DRIVER( fsa1a )      /* 1986 MSX2 Japan                           */
758//0128u5   DRIVER( fsa1mk2 )   /* 1987 MSX2 Japan                           */
759//0128u5   DRIVER( fsa1f )      /* 1987 MSX2 Japan                           */
760//0128u5   DRIVER( fsa1fm )   /* 1988 MSX2 Japan                           */
761//0128u5   DRIVER( hbf500 )   /* 1986 MSX2 Japan                           */
762//0128u5   DRIVER( hbf900 )   /* 1986 MSX2 Japan                           */
763//0128u5   DRIVER( hbf900a )   /* 1986 MSX2 Japan                           */
764//0128u5   DRIVER( hbf1 )      /* 1986 MSX2 Japan                           */
765//0128u5   DRIVER( hbf12 )      /* 1987 MSX2 Japan                           */
766//0128u5   DRIVER( hbf1xd )   /* 1987 MSX2 Japan                           */
767//0128u5   DRIVER( hbf1xdm2 )   /* 1988 MSX2 Japan                           */
768//0128u5   DRIVER( phc23 )      /* 1986 MSX2 Japan                           */
769//0128u5   DRIVER( cpc300 )   /* 1986 MSX2 Korea                           */
770//0128u5   DRIVER( cpc300e )   /* 1986 MSX2 Korea                           */
771//0128u5   DRIVER( cpc400 )   /* 1986 MSX2 Korea                           */
772//0128u5   DRIVER( cpc400s )   /* 1986 MSX2 Korea                           */
773//0128u5   DRIVER( expert20 )/* 1986 MSX2 Korea                           */
664   DRIVER( msx )      /* 1983 MSX                               */
665   DRIVER( ax170 )
666   DRIVER( canonv10 )
667   DRIVER( canonv20 )
668   DRIVER( dpc100 )   /* 1984 MSX Korea                           */
669   DRIVER( dpc180 )   /* 1984 MSX Korea                           */
670   DRIVER( dpc200 )   /* 1984 MSX Korea                           */
671   DRIVER( gsfc200 )
672   DRIVER( expert10 )   /* 1983 MSX Brazil                           */
673   DRIVER( expert11 )   /* 1984 MSX Brazil                           */
674   DRIVER( expert13 )   /* 1984 MSX Brazil                           */
675   DRIVER( expertdp )   /* 1985 MSX Brazil                           */
676   DRIVER( expertpl )   /* 1984 MSX Brazil                           */
677   DRIVER( jvchc7gb )
678   DRIVER( mlf80 )
679   DRIVER( mlfx1 )
680   DRIVER( cf1200 )   /* 1984 MSX Japan                           */
681   DRIVER( cf2000 )   /* 1983 MSX Japan                           */
682   DRIVER( cf2700 )   /* 1984 MSX Japan                           */
683   DRIVER( cf3000 )   /* 1984 MSX Japan                           */
684   DRIVER( cf3300 )   /* 1985 MSX Japan                           */
685   DRIVER( fs1300 )   /* 1985 MSX Japan                           */
686   DRIVER( fs4000 )   /* 1985 MSX Japan                           */
687   DRIVER( nms801 )
688   DRIVER( vg802000 )
689   DRIVER( vg802020 )   /* 1985 MSX                                 */
690   DRIVER( piopx7 )   
691   DRIVER( mpc100 )
692   DRIVER( hotbit11 )   /* 1985 MSX Brazil                           */
693   DRIVER( hotbit12 )   /* 1985 MSX   Brazil                           */
694   DRIVER( hotbi13b )   /* 1985 MSX   Brazil                           */
695   DRIVER( hotbi13p )   /* 1985 MSX   Brazil                           */
696   DRIVER( hotbit20 )   /* 1986 MSX2 Brazil                           */
697   DRIVER( hb201 )      /* 1985 MSX Japan                           */
698   DRIVER( hb201p )   /* 1985 MSX                                 */
699   DRIVER( hb501p )   /* 1984 MSX                                 */
700   DRIVER( hb55d )      /* 1983 MSX Germany                           */
701   DRIVER( hb55p )      /* 1983 MSX                                 */
702   DRIVER( hb75d )      /* 1983 MSX Germany                           */
703   DRIVER( hb75p )      /* 1983 MSX                                 */
704   DRIVER( svi728 )   /* 1985 MSX                                 */
705   DRIVER( svi738 )   /* 1985 MSX                                 */
706   DRIVER( svi738sw )   /* 1985 MSX                                 */
707   DRIVER( tadpc200 )
708   DRIVER( tadpc20a )
709   DRIVER( hx10 )      /* 1984 MSX                                 */
710   DRIVER( hx10s )      /* 1984 MSX                                 */
711   DRIVER( hx20 )      /* 1984 MSX                                 */
712   DRIVER( cx5m )
713   DRIVER( cx5m128 )
714   DRIVER( cx5m2 )   
715   DRIVER( yis303 )
716   DRIVER( yis503 )
717   DRIVER( yis503ii )
718   DRIVER( yis503m )
719   DRIVER( yc64 )
774720
775//0128u5   DRIVER( msx2p )      /* 1988 MSX2+ Japan                           */
776//0128u5   DRIVER( fsa1fx )   /* 1988 MSX2+ Japan                           */
777//0128u5   DRIVER( fsa1wx )   /* 1988 MSX2+ Japan                           */
778//0128u5   DRIVER( fsa1wxa )   /* 1988 MSX2+ Japan                           */
779//0128u5   DRIVER( fsa1wsx )   /* 1989 MSX2+ Japan                           */
780//0128u5   DRIVER( hbf1xdj )   /* 1988 MSX2+ Japan                           */
781//0128u5   DRIVER( hbf1xv )   /* 1989 MSX2+ Japan                           */
782//0128u5   DRIVER( phc70fd )   /* 1988 MSX2+ Japan                           */
783//0128u5   DRIVER( phc70fd2 )   /* 1988 MSX2+ Japan                           */
784//0128u5   DRIVER( phc35j )   /* 1989 MSX2+ Japan                           */
785721
722   DRIVER( msx2 )      /* 1985 MSX2                              */
723   DRIVER( ax350 )
724   DRIVER( ax370 )
725   DRIVER( hbf9p )      /* 1985 MSX2                              */
726   DRIVER( hbf9s )      /* 1985 MSX2                              */
727   DRIVER( hbf500p )   /* 1985 MSX2                              */
728   DRIVER( hbf700d )   /* 1985 MSX2 Germany                        */
729   DRIVER( hbf700f )   /* 1985 MSX2                   */
730   DRIVER( hbf700p )   /* 1985 MSX2                              */
731   DRIVER( hbf700s )   /* 1985 MSX2 Spain                           */
732   DRIVER( hbg900ap )   /* 1986 MSX2                              */
733   DRIVER( hbg900p )   /* 1986 MSX2                              */
734   DRIVER( nms8220 )   /* 1986 MSX2                              */
735   DRIVER( nms8220a )   /* 1986 MSX2                              */
736   DRIVER( vg8230 )   /* 1986 MSX2                              */
737   DRIVER( vg8235 )   /* 1986 MSX2                              */
738   DRIVER( vg8235f)   /* 1986 MSX2                              */
739   DRIVER( vg8240)   /* 1986 MSX2                              */
740   DRIVER( nms8245 )   /* 1986 MSX2                              */
741   DRIVER( nms8245f)   /* 1986 MSX2                              */
742   DRIVER( nms8250 )   /* 1986 MSX2                              */
743   DRIVER( nms8255 )   /* 1986 MSX2                              */
744   DRIVER( nms8280 )   /* 1986 MSX2                              */
745   DRIVER( nms8280g)   /* 1986 MSX2                              */
746   DRIVER( tpc310)     /* 1986 MSX2                              */
747   DRIVER( hx23)       /* 1986 MSX2                              */
748   DRIVER( hx23f)     /* 1986 MSX2                              */
749   DRIVER( cx7m)       /* 1986 MSX2                              */
750   DRIVER( cx7m128)   /* 1986 MSX2                              */
751   DRIVER( fs5500 )   /* 1985 MSX2 Japan                           */
752   DRIVER( fs4500 )   /* 1986 MSX2 Japan                           */
753   DRIVER( fs4700 )   /* 1986 MSX2 Japan                           */
754   DRIVER( fs5000 )   /* 1986 MSX2 Japan                           */
755   DRIVER( fs4600 )   /* 1986 MSX2 Japan                           */
756   DRIVER( fsa1 )      /* 1986 MSX2 Japan                           */
757   DRIVER( fsa1a )      /* 1986 MSX2 Japan                           */
758   DRIVER( fsa1mk2 )   /* 1987 MSX2 Japan                           */
759   DRIVER( fsa1f )      /* 1987 MSX2 Japan                           */
760   DRIVER( fsa1fm )   /* 1988 MSX2 Japan                           */
761   DRIVER( hbf500 )   /* 1986 MSX2 Japan                           */
762   DRIVER( hbf900 )   /* 1986 MSX2 Japan                           */
763   DRIVER( hbf900a )   /* 1986 MSX2 Japan                           */
764   DRIVER( hbf1 )      /* 1986 MSX2 Japan                           */
765   DRIVER( hbf12 )      /* 1987 MSX2 Japan                           */
766   DRIVER( hbf1xd )   /* 1987 MSX2 Japan                           */
767   DRIVER( hbf1xdm2 )   /* 1988 MSX2 Japan                           */
768   DRIVER( phc23 )      /* 1986 MSX2 Japan                           */
769   DRIVER( cpc300 )   /* 1986 MSX2 Korea                           */
770   DRIVER( cpc300e )   /* 1986 MSX2 Korea                           */
771   DRIVER( cpc400 )   /* 1986 MSX2 Korea                           */
772   DRIVER( cpc400s )   /* 1986 MSX2 Korea                           */
773   DRIVER( expert20 )/* 1986 MSX2 Korea                           */
786774
775   DRIVER( msx2p )      /* 1988 MSX2+ Japan                           */
776   DRIVER( fsa1fx )   /* 1988 MSX2+ Japan                           */
777   DRIVER( fsa1wx )   /* 1988 MSX2+ Japan                           */
778   DRIVER( fsa1wxa )   /* 1988 MSX2+ Japan                           */
779   DRIVER( fsa1wsx )   /* 1989 MSX2+ Japan                           */
780   DRIVER( hbf1xdj )   /* 1988 MSX2+ Japan                           */
781   DRIVER( hbf1xv )   /* 1989 MSX2+ Japan                           */
782   DRIVER( phc70fd )   /* 1988 MSX2+ Japan                           */
783   DRIVER( phc70fd2 )   /* 1988 MSX2+ Japan                           */
784   DRIVER( phc35j )   /* 1989 MSX2+ Japan                           */
785
786
787787   /* NASCOM MICROCOMPUTERS */
788788   DRIVER( nascom1 )   /* 1978 Nascom 1                           */
789789   DRIVER( nascom2 )   /* 1979 Nascom 2                           */
r3773r3774
846846
847847   /* Team Concepts */
848848   /* CPU not known, else should be easy, look into drivers/comquest.c */
849//0128u5   DRIVER( comquest )   /* Comquest Plus German                        */
849   DRIVER( comquest )   /* Comquest Plus German                        */
850850
851851   /* Hewlett Packard */
852852   DRIVER( hp48s )      /* HP48 S */
r3773r3774
855855   DRIVER( hp48gx )   /* HP48 GX */
856856
857857   /* SpectraVideo */
858//0128u5   DRIVER( svi318 )   /* SVI-318 (PAL)                           */
859//0128u5   DRIVER( svi318n )   /* SVI-318 (NTSC)                           */
860//0128u5   DRIVER( svi328 )   /* SVI-328 (PAL)                           */
861//0128u5   DRIVER( svi328n )   /* SVI-328 (NTSC)                           */
862//0128u5   DRIVER( sv328p80 )   /* SVI-328 (PAL) + SVI-806 80 column card         */
863//0128u5   DRIVER( sv328n80 )   /* SVI-328 (NTSC) + SVI-806 80 column card         */
858   DRIVER( svi318 )   /* SVI-318 (PAL)                           */
859   DRIVER( svi318n )   /* SVI-318 (NTSC)                           */
860   DRIVER( svi328 )   /* SVI-328 (PAL)                           */
861   DRIVER( svi328n )   /* SVI-328 (NTSC)                           */
862   DRIVER( sv328p80 )   /* SVI-328 (PAL) + SVI-806 80 column card         */
863   DRIVER( sv328n80 )   /* SVI-328 (NTSC) + SVI-806 80 column card         */
864864
865865   /* Andrew Donald Booth (this is the name of the designer, not a company) */
866866//   DRIVER( apexc53 )   /* 1951(?) APEXC: All-Purpose Electronic X-ray Computer */
867//0128u5   DRIVER( apexc )      /* 1955(?) APEXC: All-Purpose Electronic X-ray Computer */
867   DRIVER( apexc )      /* 1955(?) APEXC: All-Purpose Electronic X-ray Computer */
868868
869869   /* Sony */
870//0128u5   DRIVER( psj )      /* 1994 Sony PlayStation (Japan)               */
871//0128u5   DRIVER( psu )      /* 1995 Sony PlayStation (USA)                  */
872//0128u5   DRIVER( pse )      /* 1995 Sony PlayStation (Europe)               */
873//0128u5   DRIVER( psa )      /* 1995 Sony PlayStation (Asia-Pacific)            */
870   DRIVER( psj )      /* 1994 Sony PlayStation (Japan)               */
871   DRIVER( psu )      /* 1995 Sony PlayStation (USA)                  */
872   DRIVER( pse )      /* 1995 Sony PlayStation (Europe)               */
873   DRIVER( psa )      /* 1995 Sony PlayStation (Asia-Pacific)            */
874874
875875   /* Corvus */
876876   DRIVER(concept)      /* 1982 Corvus Concept                        */
r3773r3774
882882   DRIVER(compis)      /* 1985 Telenova Compis                        */
883883
884884   /* Multitech */
885//0128u5   DRIVER(mpf1)      /* 1979 Multitech Micro Professor 1               */
886//0128u5   DRIVER(mpf1b)      /* 1979 Multitech Micro Professor 1B            */
885   DRIVER(mpf1)      /* 1979 Multitech Micro Professor 1               */
886   DRIVER(mpf1b)      /* 1979 Multitech Micro Professor 1B            */
887887
888888   /* Telercas Oy */
889889//   DRIVER(tmc1800)
890//0128u5   DRIVER(tmc2000)
891//0128u5   DRIVER(tmc2000e)
890   DRIVER(tmc2000)
891   DRIVER(tmc2000e)
892892//   DRIVER(tmc600s1)
893//0128u5   DRIVER(tmc600s2)
893   DRIVER(tmc600s2)
894894
895895   /* OSCOM Oy */
896896//   DRIVER(osc1000b)
897//0128u5   DRIVER(oscnano)
897   DRIVER(oscnano)
898898
899899   /* MIT */
900//0128u5   DRIVER( tx0_64kw )   /* April 1956 MIT TX-0 (64kw RAM)               */
901//0128u5   DRIVER( tx0_8kw )   /* 1962 MIT TX-0 (8kw RAM)                     */
900   DRIVER( tx0_64kw )   /* April 1956 MIT TX-0 (64kw RAM)               */
901   DRIVER( tx0_8kw )   /* 1962 MIT TX-0 (8kw RAM)                     */
902902
903903   /* Luxor Datorer AB */
904//0128u5   DRIVER( abc80 )
905//0128u5   DRIVER( abc802 )
906//0128u5   DRIVER( abc800m )
907//0128u5   DRIVER( abc800c )
908//0128u5   DRIVER( abc806 )
904   DRIVER( abc80 )
905   DRIVER( abc802 )
906   DRIVER( abc800m )
907   DRIVER( abc800c )
908   DRIVER( abc806 )
909909
910910   /* Be Incorporated */
911//0128u5   DRIVER( bebox )      /* BeBox Dual603-66                           */
912//0128u5   DRIVER( bebox2 )   /* BeBox Dual603-133                        */
911   DRIVER( bebox )      /* BeBox Dual603-66                           */
912   DRIVER( bebox2 )   /* BeBox Dual603-133                        */
913913
914914   /* Tiger Electronics */
915//0128u5   DRIVER( gamecom )   /* Tiger Game.com                           */
915   DRIVER( gamecom )   /* Tiger Game.com                           */
916916
917917   /* Thomson */
918918//0128u5   DRIVER( t9000 )      /* 1980 Thomson T9000 (TO7 prototype)            */
r3773r3774
935935   DRIVER( cybikoxt )   /* Cybiko Wireless Intertainment System - Xtreme     */
936936
937937   /* Dick Smith */
938//0128u5   DRIVER( super80 )
939//0128u5   DRIVER( super80d )
940//0128u5   DRIVER( super80e )
941//0128u5   DRIVER( super80m )
942//0128u5   DRIVER( super80r )
943//0128u5   DRIVER( super80v )
938   DRIVER( super80 )
939   DRIVER( super80d )
940   DRIVER( super80e )
941   DRIVER( super80m )
942   DRIVER( super80r )
943   DRIVER( super80v )
944944
945945   /* Galeb */
946946   DRIVER( galeb )
r3773r3774
10261026  /* Spectrum clones */
10271027     
10281028  /* ICE-Felix */
1029//0128u5   DRIVER( hc85 )    /* 1985 HC-85                                */
1030//0128u5   DRIVER( hc90 )    /* 1990 HC-90                                */
1031//0128u5   DRIVER( hc91 )    /* 1991 HC-91                                */
1032//0128u5   DRIVER( hc128 )   /* 1991 HC-128                             */
1033//0128u5   DRIVER( hc2000 )  /* 1992 HC-2000                             */
1029   DRIVER( hc85 )    /* 1985 HC-85                                */
1030   DRIVER( hc90 )    /* 1990 HC-90                                */
1031   DRIVER( hc91 )    /* 1991 HC-91                                */
1032   DRIVER( hc128 )   /* 1991 HC-128                             */
1033   DRIVER( hc2000 )  /* 1992 HC-2000                             */
10341034
1035//0128u5   DRIVER( cip03 )   /* 1988 CIP-03                                */
1036//0128u5   DRIVER( jet )     /* 1990 JET                                */
1035   DRIVER( cip03 )   /* 1988 CIP-03                                */
1036   DRIVER( jet )     /* 1990 JET                                */
10371037 
10381038  /* Didaktik Skalica */
1039//0128u5   DRIVER( dgama87)  /* 1987 Didaktik Gama 87          */
1040//0128u5   DRIVER( dgama88)  /* 1988 Didaktik Gama 88          */
1041//0128u5   DRIVER( dgama89)  /* 1989 Didaktik Gama 89          */
1042//0128u5   DRIVER( didakt90) /* 1990 Didaktik Skalica 90       */
1043//0128u5   DRIVER( didakm91) /* 1991 Didaktik M 91             */
1044//0128u5   DRIVER( didaktk)  /* 1992 Didaktik Kompakt          */
1045//0128u5   DRIVER( didakm93) /* 1993 Didaktik M 93             */
1039   DRIVER( dgama87)  /* 1987 Didaktik Gama 87          */
1040   DRIVER( dgama88)  /* 1988 Didaktik Gama 88          */
1041   DRIVER( dgama89)  /* 1989 Didaktik Gama 89          */
1042   DRIVER( didakt90) /* 1990 Didaktik Skalica 90       */
1043   DRIVER( didakm91) /* 1991 Didaktik M 91             */
1044   DRIVER( didaktk)  /* 1992 Didaktik Kompakt          */
1045   DRIVER( didakm93) /* 1993 Didaktik M 93             */
10461046   
1047//0128u5   DRIVER( mistrum ) /* 1988 Mistrum                              */
1047   DRIVER( mistrum ) /* 1988 Mistrum                              */
10481048   
10491049   /* Russian clones */
1050//0128u5   DRIVER( blitz )     /* 1990 Blic                     */
1051//0128u5   DRIVER( byte )      /* 1990 Byte                     */
1052//0128u5   DRIVER( orizon )    /* 199? Orizon-Micro             */
1053//0128u5   DRIVER( quorum48 )  /* 1993 Kvorum 48K               */
1054//0128u5   DRIVER( magic6 )    /* 1993 Magic 6                  */
1055//0128u5   DRIVER( compani1 )  /* 1990 Kompanion 1              */
1050   DRIVER( blitz )     /* 1990 Blic                     */
1051   DRIVER( byte )      /* 1990 Byte                     */
1052   DRIVER( orizon )    /* 199? Orizon-Micro             */
1053   DRIVER( quorum48 )  /* 1993 Kvorum 48K               */
1054   DRIVER( magic6 )    /* 1993 Magic 6                  */
1055   DRIVER( compani1 )  /* 1990 Kompanion 1              */
10561056
10571057   /* Kramer */
10581058   DRIVER(kramermc) /* 1987 Kramer MC            */
r3773r3774
10611061   DRIVER(pecom64)
10621062     
10631063   /* Bondwell */
1064//0128u5   DRIVER( bw2 )
1064   DRIVER( bw2 )
10651065
10661066   /* Exeltel */
10671067   DRIVER( exl100 )
r3773r3774
10731073//   DRIVER( comxpl80 )
10741074
10751075   /* Grundy Business Systems Ltd */
1076//0128u5   DRIVER( newbrain )
1077//0128u5   DRIVER( newbraim )
1078//0128u5   DRIVER( newbraia )
1079//0128u5   DRIVER( newbraiv )
1076   DRIVER( newbrain )
1077   DRIVER( newbraim )
1078   DRIVER( newbraia )
1079   DRIVER( newbraiv )
10801080
10811081   /* Votrax */
10821082//   DRIVER( votrtnt ) /* Votrax Type-N-Talk */
r3773r3774
10891089   DRIVER( mk2 )      /* Chess Champion MK II                        */
10901090
10911091   /* Novag */
1092//0128u5   DRIVER( ssystem3 )   /* Chess Champion Super System III / MK III         */
1092   DRIVER( ssystem3 )   /* Chess Champion Super System III / MK III         */
10931093
10941094   /* Hegener & Glaser Munich */
10951095//   DRIVER( mephisto )   /* Mephisto                                 */
1096//0128u5   DRIVER( mm4 )      /* Mephisto 4                              */
1097//0128u5   DRIVER( mm5 )      /* Mephisto 5.1 ROM                           */
1098//0128u5   DRIVER( mm50 )      /* Mephisto 5.0 ROM                           */
1099//0128u5   DRIVER( rebel5 )      /* Mephisto 5                           */
1100//0128u5   DRIVER( glasgow )      /* Glasgow                              */
1101//0128u5   DRIVER( amsterd )      /* Amsterdam                           */
1102//0128u5   DRIVER( dallas )      /* Dallas                              */
1103//0128u5   DRIVER( dallas16 )      /* Dallas                              */
1104//0128u5   DRIVER( dallas32 )      /* Dallas                              */
1105//0128u5   DRIVER( roma )         /* Roma                                 */
1106//0128u5   DRIVER( roma32 )      /* Roma                                 */
1096   DRIVER( mm4 )      /* Mephisto 4                              */
1097   DRIVER( mm5 )      /* Mephisto 5.1 ROM                           */
1098   DRIVER( mm50 )      /* Mephisto 5.0 ROM                           */
1099   DRIVER( rebel5 )      /* Mephisto 5                           */
1100   DRIVER( glasgow )      /* Glasgow                              */
1101   DRIVER( amsterd )      /* Amsterdam                           */
1102   DRIVER( dallas )      /* Dallas                              */
1103   DRIVER( dallas16 )      /* Dallas                              */
1104   DRIVER( dallas32 )      /* Dallas                              */
1105   DRIVER( roma )         /* Roma                                 */
1106   DRIVER( roma32 )      /* Roma                                 */
11071107
11081108/*********** Misc ***********************************************************/
1109//0128u5   DRIVER( ex800 )
1109   DRIVER( ex800 )
11101110
11111111
11121112#endif /* DRIVER_RECURSIVE */
src/mess/machine/pokemini.c
r3773r3774
490490         int index = data & 0x07;
491491         int cycles = ( pm_reg[0x19] & 0x01 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
492492
493         timer_adjust_periodic(timers.timer1, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
493         timer_adjust_periodic(timers.timer1, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
494494      }
495495
496496      /* Check for prescaler change for the high counter */
r3773r3774
499499         int index = ( data >> 4 ) & 0x07;
500500         int cycles = ( pm_reg[0x19] & 0x02 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
501501
502         timer_adjust_periodic(timers.timer1_hi, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
502         timer_adjust_periodic(timers.timer1_hi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
503503      }
504504
505505      /* Check if timer1 low should be enabled */
r3773r3774
540540         int index = pm_reg[0x18] & 0x07;
541541         int cycles = ( data & 0x01 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
542542
543         timer_adjust_periodic(timers.timer1, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
543         timer_adjust_periodic(timers.timer1, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
544544      }
545545
546546      /* Check for prescaler change for the low counter */
r3773r3774
549549         int index = ( pm_reg[0x18] >> 4 ) & 0x07;
550550         int cycles = ( data & 0x02 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
551551
552         timer_adjust_periodic(timers.timer1_hi, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
552         timer_adjust_periodic(timers.timer1_hi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
553553      }
554554
555555      {
r3773r3774
619619         int index = data & 0x07;
620620         int cycles = ( pm_reg[0x1B] & 0x01 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
621621
622         timer_adjust_periodic(timers.timer2, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
622         timer_adjust_periodic(timers.timer2, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
623623      }
624624
625625      /* Check for prescaler change for the high counter */
r3773r3774
628628         int index = ( data >> 4 ) & 0x07;
629629         int cycles = ( pm_reg[0x1B] & 0x02 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
630630
631         timer_adjust_periodic(timers.timer2_hi, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
631         timer_adjust_periodic(timers.timer2_hi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
632632      }
633633
634634      /* Check if timer2 low should be enabled */
r3773r3774
665665         int index = pm_reg[0x1A] & 0x07;
666666         int cycles = ( data & 0x01 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
667667
668         timer_adjust_periodic(timers.timer2, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
668         timer_adjust_periodic(timers.timer2, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
669669
670670         if ( ( pm_reg[0x1A] & 0x08 ) && ( pm_reg[0x38] & 0x04 ) &&
671671              ( ( ( pm_reg[0x19] & 0x10 ) && ( data & 0x01 ) ) ||
r3773r3774
685685         int index = ( pm_reg[0x1A] >> 4 ) & 0x07;
686686         int cycles = ( data & 0x02 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
687687
688         timer_adjust_periodic(timers.timer2_hi, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
688         timer_adjust_periodic(timers.timer2_hi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
689689
690690         if ( ( pm_reg[0x1A] & 0x80 ) && ( pm_reg[0x39] & 0x04 ) && ! ( pm_reg[0x38] & 0x80 ) &&
691691              ( ( ( pm_reg[0x19] & 0x10 ) && ( data & 0x02 ) ) ||
r3773r3774
719719         int index = data & 0x07;
720720         int cycles = ( pm_reg[0x1D] & 0x01 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
721721
722         timer_adjust_periodic(timers.timer3, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
722         timer_adjust_periodic(timers.timer3, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
723723      }
724724
725725      /* Check for prescaler change for the high counter */
r3773r3774
728728         int index = ( data >> 4 ) & 0x07;
729729         int cycles = ( pm_reg[0x1D] & 0x02 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
730730
731         timer_adjust_periodic(timers.timer3_hi, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
731         timer_adjust_periodic(timers.timer3_hi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
732732      }
733733
734734      /* Check if timer2 low should be enabled */
r3773r3774
765765         int index = pm_reg[0x1C] & 0x07;
766766         int cycles = ( data & 0x01 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
767767
768         timer_adjust_periodic(timers.timer3, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
768         timer_adjust_periodic(timers.timer3, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
769769
770770         if ( ( pm_reg[0x1C] & 0x08 ) && ( pm_reg[0x48] & 0x04 ) &&
771771              ( ( ( pm_reg[0x19] & 0x10 ) && ( data & 0x01 ) ) ||
r3773r3774
785785         int index = ( pm_reg[0x1C] >> 4 ) & 0x07;
786786         int cycles = ( data & 0x02 ) ? timer_to_cycles_slow[index] : timer_to_cycles_fast[index];
787787
788         timer_adjust_periodic(timers.timer3_hi, attotime_zero, 0, cpu_clocks_to_attotime(machine->cpu[0], cycles));
788         timer_adjust_periodic(timers.timer3_hi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], cycles));
789789
790790         if ( ( pm_reg[0x1C] & 0x80 ) && ( pm_reg[0x49] & 0x04 ) && ! ( pm_reg[0x48] & 0x80 ) &&
791791              ( ( ( pm_reg[0x19] & 0x10 ) && ( data & 0x02 ) ) ||
src/mess/machine/gb.c
r3773r3774
775775      case 0x81:            /* enabled & internal clock */
776776         SIODATA = 0xFF;
777777         SIOCount = 8;
778         timer_adjust_periodic(gb_serial_timer, cpu_clocks_to_attotime(machine->cpu[0], 512), 0, cpu_clocks_to_attotime(machine->cpu[0], 512));
778         timer_adjust_periodic(gb_serial_timer, cpu_clocks_to_attotime(space->machine->cpu[0], 512), 0, cpu_clocks_to_attotime(space->machine->cpu[0], 512));
779779         timer_enable( gb_serial_timer, 1 );
780780         break;
781781      }
src/mess/machine/nes.c
r3773r3774
386386   in_1.shift = 0;
387387
388388   /* Check if lightgun has been chosen as input: if so, enable crosshair */
389   timer_set(machine, attotime_zero, NULL, 0, lightgun_tick);
389   timer_set(space->machine, attotime_zero, NULL, 0, lightgun_tick);
390390
391391   /* Check the configuration to see what's connected */
392392   cfg = input_port_read(space->machine, "CTRLSEL");
src/mess/machine/adc080x.c
r3773r3774
150150   adc080x->eoc = 1;
151151
152152   /* allocate cycle timer */
153   adc080x->cycle_timer = timer_alloc(machine, cycle_tick, (void *)device);
153   adc080x->cycle_timer = timer_alloc(device->machine, cycle_tick, (void *)device);
154154   timer_adjust_periodic(adc080x->cycle_timer, attotime_zero, 0, ATTOTIME_IN_HZ(adc080x->intf->clock));
155155
156156   /* register for state saving */
157   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->address);
158   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->ale);
159   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->start);
160   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->eoc);
161   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->next_eoc);
162   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->sar);
163   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->cycle);
164   state_save_register_item(machine, "adc080x", device->tag, 0, adc080x->bit);
157   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->address);
158   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->ale);
159   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->start);
160   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->eoc);
161   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->next_eoc);
162   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->sar);
163   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->cycle);
164   state_save_register_item(device->machine, "adc080x", device->tag, 0, adc080x->bit);
165165   return DEVICE_START_OK;
166166}
167167
src/mess/machine/nes_mmc.c
r3773r3774
28732873         /* Check if IRQ is being enabled */
28742874         if ( ! IRQ_enable && ( data & 0x02 ) ) {
28752875            IRQ_enable = 1;
2876            timer_adjust_oneshot(nes_irq_timer, cpu_clocks_to_attotime(machine->cpu[0], 24576), 0);
2876            timer_adjust_oneshot(nes_irq_timer, cpu_clocks_to_attotime(space->machine->cpu[0], 24576), 0);
28772877         }
28782878         if ( ! ( data & 0x02 ) ) {
28792879            IRQ_enable = 0;
r3773r3774
48614861   ppu2c0x_set_hblank_callback (0, mapper ? mapper->mmc_hblank :  NULL);
48624862
48634863   if (!nes_irq_timer)
4864      nes_irq_timer = timer_alloc(machine, nes_irq_callback, NULL);
4864      nes_irq_timer = timer_alloc(Machine, nes_irq_callback, NULL);
48654865
48664866   mapper_warning = 0;
48674867   /* 8k mask */
src/mess/machine/e0516.c
r3773r3774
200200   assert(e0516->intf->clock > 0);
201201
202202   /* create the timers */
203   e0516->clock_timer = timer_alloc(machine, clock_tick, (void *)device);
203   e0516->clock_timer = timer_alloc(device->machine, clock_tick, (void *)device);
204204   timer_adjust_periodic(e0516->clock_timer, attotime_zero, 0, ATTOTIME_IN_HZ(e0516->intf->clock / 32768));
205205
206206   /* register for state saving */
207   state_save_register_item(machine, "e0516", device->tag, 0, e0516->cs);
208   state_save_register_item(machine, "e0516", device->tag, 0, e0516->data_latch);
209   state_save_register_item(machine, "e0516", device->tag, 0, e0516->reg_latch);
210   state_save_register_item(machine, "e0516", device->tag, 0, e0516->read_write);
211   state_save_register_item(machine, "e0516", device->tag, 0, e0516->state);
212   state_save_register_item(machine, "e0516", device->tag, 0, e0516->bits);
213   state_save_register_item(machine, "e0516", device->tag, 0, e0516->dio);
207   state_save_register_item(device->machine, "e0516", device->tag, 0, e0516->cs);
208   state_save_register_item(device->machine, "e0516", device->tag, 0, e0516->data_latch);
209   state_save_register_item(device->machine, "e0516", device->tag, 0, e0516->reg_latch);
210   state_save_register_item(device->machine, "e0516", device->tag, 0, e0516->read_write);
211   state_save_register_item(device->machine, "e0516", device->tag, 0, e0516->state);
212   state_save_register_item(device->machine, "e0516", device->tag, 0, e0516->bits);
213   state_save_register_item(device->machine, "e0516", device->tag, 0, e0516->dio);
214214
215   state_save_register_item_array(machine, "e0516", device->tag, 0, e0516->reg);
215   state_save_register_item_array(device->machine, "e0516", device->tag, 0, e0516->reg);
216216   return DEVICE_START_OK;
217217}
218218
src/mess/machine/abc77.c
r3773r3774
338338
339339   /* allocate reset timer */
340340
341   abc77->reset_timer = timer_alloc(machine, reset_tick, (FPTR *) device);
341   abc77->reset_timer = timer_alloc(device->machine, reset_tick, (FPTR *) device);
342342
343343   /* register for state saving */
344344
345   state_save_register_item(machine, "abc77", device->tag, 0, abc77->keylatch);
346   state_save_register_item(machine, "abc77", device->tag, 0, abc77->clock);
347   state_save_register_item(machine, "abc77", device->tag, 0, abc77->hys);
348   state_save_register_item(machine, "abc77", device->tag, 0, abc77->reset);
345   state_save_register_item(device->machine, "abc77", device->tag, 0, abc77->keylatch);
346   state_save_register_item(device->machine, "abc77", device->tag, 0, abc77->clock);
347   state_save_register_item(device->machine, "abc77", device->tag, 0, abc77->hys);
348   state_save_register_item(device->machine, "abc77", device->tag, 0, abc77->reset);
349349
350350   return DEVICE_START_OK;
351351}
src/mess/mess.mak
r3773r3774
410410   $(MESSOBJ)/gce.a \
411411   $(MESSOBJ)/glasgow.a \
412412   $(MESSOBJ)/gmaster.a \
413   $(MESSOBJ)/grundy.a \
413414   $(MESSOBJ)/homelab.a \
414415   $(MESSOBJ)/hp48.a \
415416   $(MESSOBJ)/intv.a \
r3773r3774
418419   $(MESSOBJ)/kaypro.a \
419420   $(MESSOBJ)/kim1.a \
420421   $(MESSOBJ)/kramermc.a \
422   $(MESSOBJ)/luxor.a \
421423   $(MESSOBJ)/lviv.a \
422424   $(MESSOBJ)/lynx.a \
423425   $(MESSOBJ)/magnavox.a \
424426   $(MESSOBJ)/mbee.a \
425427   $(MESSOBJ)/mc10.a \
426428   $(MESSOBJ)/memotech.a \
429   $(MESSOBJ)/mephisto.a \
427430   $(MESSOBJ)/mikro80.a \
428431   $(MESSOBJ)/mk1.a \
429432   $(MESSOBJ)/mk2.a \
430433   $(MESSOBJ)/motorola.a \
434   $(MESSOBJ)/multitch.a \
431435   $(MESSOBJ)/nascom1.a \
432436   $(MESSOBJ)/nec.a \
433437   $(MESSOBJ)/necpc.a \
438   $(MESSOBJ)/nintendo.a \
434439   $(MESSOBJ)/ondra.a \
435440   $(MESSOBJ)/orion.a \
441   $(MESSOBJ)/osborne.a \
442   $(MESSOBJ)/sgi.a \
443   $(MESSOBJ)/p2000.a \
444   $(MESSOBJ)/pasogo.a \
436445   $(MESSOBJ)/pc.a \
437   $(MESSOBJ)/sgi.a \
438446   $(MESSOBJ)/pcshare.a \
439447   $(MESSOBJ)/pdp1.a \
440448   $(MESSOBJ)/pel.a \
r3773r3774
444452   $(MESSOBJ)/primo.a \
445453   $(MESSOBJ)/radio.a \
446454   $(MESSOBJ)/rca.a \
455   $(MESSOBJ)/rockwell.a \
447456   $(MESSOBJ)/rt1715.a \
448457   $(MESSOBJ)/sapi1.a \
449458   $(MESSOBJ)/samcoupe.a \
r3773r3774
475484   $(MESSOBJ)/vtech.a \
476485   $(MESSOBJ)/shared.a \
477486
478#   $(MESSOBJ)/grundy.a \
479#   $(MESSOBJ)/luxor.a \
480#   $(MESSOBJ)/mephisto.a \
481#   $(MESSOBJ)/multitch.a \
482#   $(MESSOBJ)/nintendo.a \
483#   $(MESSOBJ)/osborne.a \
484#   $(MESSOBJ)/p2000.a \
485#   $(MESSOBJ)/pasogo.a \
486#   $(MESSOBJ)/rockwell.a \
487487#   $(MESSOBJ)/thomson.a \
488488#   $(MESSOBJ)/ti99.a \
489489
src/mess/drivers/osi.c
r3773r3774
156156   AM_RANGE(0xa000, 0xbfff) AM_ROM
157157   AM_RANGE(0xc000, 0xc000) AM_READ(osi470_floppy_status_r)
158158   AM_RANGE(0xc002, 0xc002) AM_WRITE(osi470_floppy_control_w)
159   AM_RANGE(0xc010, 0xc010) AM_READWRITE(acia6850_1_stat_r, acia6850_1_ctrl_w)
160   AM_RANGE(0xc011, 0xc011) AM_READWRITE(acia6850_1_data_r, acia6850_1_data_w)
159   AM_RANGE(0xc010, 0xc010) AM_DEVREADWRITE(ACIA6850, "acia_1", acia6850_stat_r, acia6850_ctrl_w)
160   AM_RANGE(0xc011, 0xc011) AM_DEVREADWRITE(ACIA6850, "acia_1", acia6850_data_r, acia6850_data_w)
161161   AM_RANGE(0xd000, 0xd3ff) AM_RAM_WRITE(sb2m600_videoram_w) AM_BASE(&videoram)
162162   AM_RANGE(0xdf00, 0xdf00) AM_READWRITE(osi_keyboard_r, sb2m600b_keyboard_w)
163   AM_RANGE(0xf000, 0xf000) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_0_stat_r, acia6850_0_ctrl_w)
164   AM_RANGE(0xf001, 0xf001) AM_READWRITE(acia6850_0_data_r, acia6850_0_data_w)
163   AM_RANGE(0xf000, 0xf000) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_stat_r, acia6850_ctrl_w)
164   AM_RANGE(0xf001, 0xf001) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_data_r, acia6850_data_w)
165165   AM_RANGE(0xf800, 0xffff) AM_ROM
166166ADDRESS_MAP_END
167167
r3773r3774
170170   AM_RANGE(0xa000, 0xbfff) AM_ROM
171171   AM_RANGE(0xd000, 0xd3ff) AM_RAM_WRITE(sb2m600_videoram_w) AM_BASE(&videoram)
172172   AM_RANGE(0xdf00, 0xdf00) AM_MIRROR(0x03ff) AM_READWRITE(osi_keyboard_r, uk101_keyboard_w)
173   AM_RANGE(0xf000, 0xf000) AM_MIRROR(0x00fe) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_0_stat_r, acia6850_0_ctrl_w)
174   AM_RANGE(0xf001, 0xf001) AM_MIRROR(0x00fe) AM_READWRITE(acia6850_0_data_r, acia6850_0_data_w)
173   AM_RANGE(0xf000, 0xf000) AM_MIRROR(0x00fe) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_stat_r, acia6850_ctrl_w)
174   AM_RANGE(0xf001, 0xf001) AM_MIRROR(0x00fe) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_data_r, acia6850_data_w)
175175   AM_RANGE(0xf800, 0xffff) AM_ROM
176176ADDRESS_MAP_END
177177
r3773r3774
357357static MACHINE_START( sb2m600 )
358358{
359359   // TODO: save states
360   acia6850_config(0, &sb2m600_acia_intf);
361   acia6850_config(1, &osi470_acia_intf);
362360   timer_pulse(machine,  ATTOTIME_IN_HZ(4800), NULL, 0, sb2m600_cassette_callback );
363361}
364362
365363static MACHINE_START( uk101 )
366364{
367365   // TODO: save states
368   acia6850_config(0, &uk101_acia_intf);
369366   timer_pulse(machine,  ATTOTIME_IN_HZ(4800), NULL, 0, sb2m600_cassette_callback );
370367}
371368
r3773r3774
400397   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
401398
402399   MDRV_CASSETTE_ADD( "cassette", default_cassette_config )
400   
401   /* acia */
402   MDRV_DEVICE_ADD("acia_0", ACIA6850)
403   MDRV_DEVICE_CONFIG(sb2m600_acia_intf)
404   MDRV_DEVICE_ADD("acia_1", ACIA6850)
405   MDRV_DEVICE_CONFIG(osi470_acia_intf)
403406MACHINE_DRIVER_END
404407
405408#define UK101_X1 XTAL_8MHz
r3773r3774
425428   MDRV_VIDEO_UPDATE(sb2m600)
426429
427430   MDRV_CASSETTE_ADD( "cassette", default_cassette_config )
431
432   /* acia */
433   MDRV_DEVICE_ADD("acia_0", ACIA6850)
434   MDRV_DEVICE_CONFIG(uk101_acia_intf)
428435MACHINE_DRIVER_END
429436
430437/* ROMs */
src/mess/drivers/newbrain.c
r3773r3774
920920   AM_RANGE(0x14, 0x14) AM_MIRROR(0xffc0) AM_READ(ust_r)
921921   AM_RANGE(0x15, 0x15) AM_MIRROR(0xffc2) AM_READ(user_r)
922922   AM_RANGE(0x16, 0x16) AM_MIRROR(0xffc0) AM_READ(ust2_r)
923   AM_RANGE(0x18, 0x18) AM_MIRROR(0xffc0) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_0_stat_r, acia6850_0_ctrl_w)
924   AM_RANGE(0x19, 0x19) AM_MIRROR(0xffc0) AM_READWRITE(acia6850_0_data_r, acia6850_0_data_w)
923   AM_RANGE(0x18, 0x18) AM_MIRROR(0xffc0) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_stat_r, acia6850_ctrl_w)
924   AM_RANGE(0x19, 0x19) AM_MIRROR(0xffc0) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_data_r, acia6850_data_w)
925925   AM_RANGE(0x1c, 0x1c) AM_MIRROR(0xffc0) AM_DEVREADWRITE(Z80CTC, "z80ctc", z80ctc_r, z80ctc_w)
926926ADDRESS_MAP_END
927927
r3773r3774
949949   AM_RANGE(0x0c, 0x0c) AM_MIRROR(0xffc3) AM_WRITE(tvctl_w)
950950   AM_RANGE(0x14, 0x14) AM_MIRROR(0xffc0) AM_READ(ust_r)
951951   AM_RANGE(0x15, 0x15) AM_MIRROR(0xffc2) AM_READ(user_r)
952   AM_RANGE(0x18, 0x18) AM_MIRROR(0xffc0) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_0_stat_r, acia6850_0_ctrl_w)
953   AM_RANGE(0x19, 0x19) AM_MIRROR(0xffc0) AM_READWRITE(acia6850_0_data_r, acia6850_0_data_w)
952   AM_RANGE(0x18, 0x18) AM_MIRROR(0xffc0) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_stat_r, acia6850_ctrl_w)
953   AM_RANGE(0x19, 0x19) AM_MIRROR(0xffc0) AM_DEVREADWRITE(ACIA6850, "acia_0", acia6850_data_r, acia6850_data_w)
954954   AM_RANGE(0x1c, 0x1c) AM_MIRROR(0xffc0) AM_DEVREADWRITE(Z80CTC, "z80ctc", z80ctc_r, z80ctc_w)
955955ADDRESS_MAP_END
956956
r3773r3774
10801080
10811081/* Machine Initialization */
10821082
1083static void acia_interrupt(int state)
1083static void acia_interrupt(const device_config *device, int state)
10841084{
1085   newbrain_state *driver_state = Machine->driver_data;
1085   newbrain_state *driver_state = device->machine->driver_data;
10861086
10871087   driver_state->aciaint = state;
10881088}
r3773r3774
11691169   /* initialize devices */
11701170
11711171   nec765_init(machine, &newbrain_nec765_interface, NEC765A, NEC765_RDY_PIN_NOT_CONNECTED);
1172   acia6850_config(0, &newbrain_acia_intf);
11731172
11741173   /* allocate reset timer */
11751174   
r3773r3774
12681267
12691268   MDRV_CASSETTE_ADD( "cassette1", newbrain_cassette_config )
12701269   MDRV_CASSETTE_ADD( "cassette2", newbrain_cassette_config )
1270   
1271   /* acia */
1272   MDRV_DEVICE_ADD("acia_0", ACIA6850)
1273   MDRV_DEVICE_CONFIG(newbrain_acia_intf)   
12711274MACHINE_DRIVER_END
12721275
12731276static MACHINE_DRIVER_START( newbraim )
r3773r3774
12951298
12961299   MDRV_CASSETTE_ADD( "cassette1", newbrain_cassette_config )
12971300   MDRV_CASSETTE_ADD( "cassette2", newbrain_cassette_config )
1301
1302   /* acia */
1303   MDRV_DEVICE_ADD("acia_0", ACIA6850)
1304   MDRV_DEVICE_CONFIG(newbrain_acia_intf)   
12981305MACHINE_DRIVER_END
12991306
13001307static MACHINE_DRIVER_START( newbraia )
r3773r3774
13201327
13211328   MDRV_CASSETTE_ADD( "cassette1", newbrain_cassette_config )
13221329   MDRV_CASSETTE_ADD( "cassette2", newbrain_cassette_config )
1330
1331   /* acia */
1332   MDRV_DEVICE_ADD("acia_0", ACIA6850)
1333   MDRV_DEVICE_CONFIG(newbrain_acia_intf)   
13231334MACHINE_DRIVER_END
13241335
13251336static MACHINE_DRIVER_START( newbraiv )
r3773r3774
13471358
13481359   MDRV_CASSETTE_ADD( "cassette1", newbrain_cassette_config )
13491360   MDRV_CASSETTE_ADD( "cassette2", newbrain_cassette_config )
1361
1362   /* acia */
1363   MDRV_DEVICE_ADD("acia_0", ACIA6850)
1364   MDRV_DEVICE_CONFIG(newbrain_acia_intf)   
13501365MACHINE_DRIVER_END
13511366
13521367/* ROMs */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team