Previous 15994 Revisions Next

r6750 Friday 25th December, 2009 at 11:12:36 UTC by Miodrag Milanović
[PDP1][TX0] Temporary disabled device for these two drivers, since both need major rewrite
[src/mess/drivers]pdp1.c tx0.c
[src/mess/machine]pdp1.c tx0.c

src/mess/machine/pdp1.c
r6749r6750
219219   pdp1_reset_param.hw_mul_div = (config >> pdp1_config_hw_mul_div_bit) & pdp1_config_hw_mul_div_mask;
220220   pdp1_reset_param.type_20_sbs = (config >> pdp1_config_type_20_sbs_bit) & pdp1_config_type_20_sbs_mask;
221221
222   tape_reader.timer = timer_alloc(machine, reader_callback, NULL);
223   tape_puncher.timer = timer_alloc(machine, puncher_callback, NULL);
224   typewriter.tyo_timer = timer_alloc(machine, tyo_callback, NULL);
225   dpy_timer = timer_alloc(machine, dpy_callback, NULL);
226
227222   /* reset device state */
228223   tape_reader.rcl = tape_reader.rc = 0;
229224   io_status = io_st_tyo | io_st_ptp;
r6749r6750
387382   memory_set_direct_update_handler(space, setOPbasefunc);
388383
389384   add_exit_callback(machine, pdp1_machine_stop);
385   
386   tape_reader.timer = timer_alloc(machine, reader_callback, NULL);
387   tape_puncher.timer = timer_alloc(machine, puncher_callback, NULL);
388   typewriter.tyo_timer = timer_alloc(machine, tyo_callback, NULL);
389   dpy_timer = timer_alloc(machine, dpy_callback, NULL);   
390390}
391391
392392
r6749r6750
425425}
426426
427427
428
428#if 0
429429DEVICE_START( pdp1_tape )
430430{
431431}
r6749r6750
500500      break;
501501   }
502502}
503
503#endif
504504/*
505505    Read a byte from perforated tape
506506*/
src/mess/machine/tx0.c
r6749r6750
186186   }
187187}
188188
189
189#if 0
190190DEVICE_START( tx0_tape )
191191{
192192}
r6749r6750
260260      break;
261261   }
262262}
263
263#endif
264264/*
265265    Read a byte from perforated tape
266266*/
src/mess/drivers/pdp1.c
r6749r6750
403403   ROM_REGION(pdp1_fontdata_size, "gfx1", ROMREGION_ERASEFF)
404404      /* space filled with our font */
405405ROM_END
406
406/*
407407static void pdp1_punchtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
408408{
409   /* punchtape */
410409   switch(state)
411410   {
412      /* --- the following bits of info are returned as 64-bit signed integers --- */
413411      case MESS_DEVINFO_INT_TYPE:                     info->i = IO_PUNCHTAPE; break;
414412      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
415413
416      /* --- the following bits of info are returned as pointers to data or functions --- */
417414      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(pdp1_tape); break;
418415      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_tape); break;
419416      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_tape); break;
420417      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = pdp1_get_open_mode; break;
421418
422      /* --- the following bits of info are returned as NULL-terminated strings --- */
423419      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tap,rim"); break;
424420   }
425421}
426422
427423static void pdp1_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
428424{
429   /* printer */
430425   switch(state)
431426   {
432      /* --- the following bits of info are returned as 64-bit signed integers --- */
433427      case MESS_DEVINFO_INT_TYPE:                     info->i = IO_PRINTER; break;
434428      case MESS_DEVINFO_INT_READABLE:                  info->i = 0; break;
435429      case MESS_DEVINFO_INT_WRITEABLE:                  info->i = 1; break;
436430      case MESS_DEVINFO_INT_CREATABLE:                  info->i = 1; break;
437431      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
438432
439      /* --- the following bits of info are returned as pointers to data or functions --- */
440433      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_typewriter); break;
441434      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_typewriter); break;
442435
443      /* --- the following bits of info are returned as NULL-terminated strings --- */
444436      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "typ"); break;
445437   }
446438}
447439
448440static void pdp1_cylinder_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
449441{
450   /* cylinder */
451442   switch(state)
452443   {
453      /* --- the following bits of info are returned as 64-bit signed integers --- */
454444      case MESS_DEVINFO_INT_TYPE:                     info->i = IO_CYLINDER; break;
455445      case MESS_DEVINFO_INT_READABLE:                  info->i = 1; break;
456446      case MESS_DEVINFO_INT_WRITEABLE:                  info->i = 1; break;
457447      case MESS_DEVINFO_INT_CREATABLE:                  info->i = 0; break;
458448      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
459449
460      /* --- the following bits of info are returned as pointers to data or functions --- */
461450      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_drum); break;
462451      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_drum); break;
463
464      /* --- the following bits of info are returned as NULL-terminated strings --- */
452     
465453      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "drm"); break;
466454   }
467455}
r6749r6750
471459   CONFIG_DEVICE(pdp1_printer_getinfo)
472460   CONFIG_DEVICE(pdp1_cylinder_getinfo)
473461SYSTEM_CONFIG_END
462*/
474463
475
476464/***************************************************************************
477465
478466  Game driver(s)
r6749r6750
480468***************************************************************************/
481469
482470/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT     INIT    CONFIG  COMPANY FULLNAME */
483COMP( 1961, pdp1,     0,       0,      pdp1,     pdp1,    0,      pdp1,   "Digital Equipment Corporation",  "PDP-1" , 0)
471COMP( 1961, pdp1,     0,       0,      pdp1,     pdp1,    0,      0,   "Digital Equipment Corporation",  "PDP-1" , 0)
src/mess/drivers/tx0.c
r6749r6750
376376      /* space filled with our font */
377377ROM_END
378378
379/*
379380static void tx0_punchtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
380381{
381   /* punchtape */
382382   switch(state)
383383   {
384      /* --- the following bits of info are returned as 64-bit signed integers --- */
385384      case MESS_DEVINFO_INT_TYPE:                     info->i = IO_PUNCHTAPE; break;
386385      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
387386
388      /* --- the following bits of info are returned as pointers to data or functions --- */
389387      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(tx0_tape); break;
390388      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tx0_tape); break;
391389      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_tape); break;
392390      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = tx0_tape_get_open_mode; break;
393391
394      /* --- the following bits of info are returned as NULL-terminated strings --- */
395392      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tap,rim"); break;
396393   }
397394}
398395
399396static void tx0_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
400397{
401   /* printer */
402398   switch(state)
403399   {
404      /* --- the following bits of info are returned as 64-bit signed integers --- */
405400      case MESS_DEVINFO_INT_TYPE:                     info->i = IO_PRINTER; break;
406401      case MESS_DEVINFO_INT_READABLE:                  info->i = 0; break;
407402      case MESS_DEVINFO_INT_WRITEABLE:                  info->i = 1; break;
408403      case MESS_DEVINFO_INT_CREATABLE:                  info->i = 1; break;
409404      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
410405
411      /* --- the following bits of info are returned as pointers to data or functions --- */
412406      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tx0_typewriter); break;
413407      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_typewriter); break;
414408
415      /* --- the following bits of info are returned as NULL-terminated strings --- */
416409      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "typ"); break;
417410   }
418411}
419412
420413static void tx0_magtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
421414{
422   /* magtape */
423415   switch(state)
424416   {
425      /* --- the following bits of info are returned as 64-bit signed integers --- */
426417      case MESS_DEVINFO_INT_TYPE:                     info->i = IO_MAGTAPE; break;
427418      case MESS_DEVINFO_INT_READABLE:                  info->i = 1; break;
428419      case MESS_DEVINFO_INT_WRITEABLE:                  info->i = 1; break;
429420      case MESS_DEVINFO_INT_CREATABLE:                  info->i = 0; break;
430421      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
431422
432      /* --- the following bits of info are returned as pointers to data or functions --- */
433423      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(tx0_magtape); break;
434424      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tx0_magtape); break;
435425      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_magtape); break;
436426
437      /* --- the following bits of info are returned as NULL-terminated strings --- */
438427      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tap"); break;
439428   }
440429}
r6749r6750
444433   CONFIG_DEVICE(tx0_magtape_getinfo)
445434   CONFIG_DEVICE(tx0_printer_getinfo)
446435SYSTEM_CONFIG_END
436*/
447437
448
449438/***************************************************************************
450439
451440  Game driver(s)
r6749r6750
453442***************************************************************************/
454443
455444/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT INIT    CONFIG  COMPANY                   FULLNAME */
456COMP( 1956, tx0_64kw, 0,    0,   tx0_64kw, tx0,   tx0,   tx0,   "MIT", "TX-0 original demonstrator (64 kWords of RAM)" , 0)
457COMP( 1962, tx0_8kw,  tx0_64kw,   0,   tx0_8kw,  tx0,   tx0,   tx0,   "MIT", "TX-0 upgraded system (8 kWords of RAM)" , 0)
445COMP( 1956, tx0_64kw, 0,    0,   tx0_64kw, tx0,   tx0,   0,   "MIT", "TX-0 original demonstrator (64 kWords of RAM)" , 0)
446COMP( 1962, tx0_8kw,  tx0_64kw,   0,   tx0_8kw,  tx0,   tx0,   0,   "MIT", "TX-0 upgraded system (8 kWords of RAM)" , 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team