src/mess/machine/pdp1.c
| r6749 | r6750 | |
| 219 | 219 | pdp1_reset_param.hw_mul_div = (config >> pdp1_config_hw_mul_div_bit) & pdp1_config_hw_mul_div_mask; |
| 220 | 220 | pdp1_reset_param.type_20_sbs = (config >> pdp1_config_type_20_sbs_bit) & pdp1_config_type_20_sbs_mask; |
| 221 | 221 | |
| 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 | | |
| 227 | 222 | /* reset device state */ |
| 228 | 223 | tape_reader.rcl = tape_reader.rc = 0; |
| 229 | 224 | io_status = io_st_tyo | io_st_ptp; |
| r6749 | r6750 | |
| 387 | 382 | memory_set_direct_update_handler(space, setOPbasefunc); |
| 388 | 383 | |
| 389 | 384 | 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); |
| 390 | 390 | } |
| 391 | 391 | |
| 392 | 392 | |
| r6749 | r6750 | |
| 425 | 425 | } |
| 426 | 426 | |
| 427 | 427 | |
| 428 | | |
| 428 | #if 0 |
| 429 | 429 | DEVICE_START( pdp1_tape ) |
| 430 | 430 | { |
| 431 | 431 | } |
| r6749 | r6750 | |
| 500 | 500 | break; |
| 501 | 501 | } |
| 502 | 502 | } |
| 503 | | |
| 503 | #endif |
| 504 | 504 | /* |
| 505 | 505 | Read a byte from perforated tape |
| 506 | 506 | */ |
src/mess/drivers/pdp1.c
| r6749 | r6750 | |
| 403 | 403 | ROM_REGION(pdp1_fontdata_size, "gfx1", ROMREGION_ERASEFF) |
| 404 | 404 | /* space filled with our font */ |
| 405 | 405 | ROM_END |
| 406 | | |
| 406 | /* |
| 407 | 407 | static void pdp1_punchtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 408 | 408 | { |
| 409 | | /* punchtape */ |
| 410 | 409 | switch(state) |
| 411 | 410 | { |
| 412 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 413 | 411 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; |
| 414 | 412 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; |
| 415 | 413 | |
| 416 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 417 | 414 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(pdp1_tape); break; |
| 418 | 415 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_tape); break; |
| 419 | 416 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_tape); break; |
| 420 | 417 | case MESS_DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = pdp1_get_open_mode; break; |
| 421 | 418 | |
| 422 | | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 423 | 419 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap,rim"); break; |
| 424 | 420 | } |
| 425 | 421 | } |
| 426 | 422 | |
| 427 | 423 | static void pdp1_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 428 | 424 | { |
| 429 | | /* printer */ |
| 430 | 425 | switch(state) |
| 431 | 426 | { |
| 432 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 433 | 427 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; |
| 434 | 428 | case MESS_DEVINFO_INT_READABLE: info->i = 0; break; |
| 435 | 429 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; |
| 436 | 430 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; |
| 437 | 431 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; |
| 438 | 432 | |
| 439 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 440 | 433 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_typewriter); break; |
| 441 | 434 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_typewriter); break; |
| 442 | 435 | |
| 443 | | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 444 | 436 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "typ"); break; |
| 445 | 437 | } |
| 446 | 438 | } |
| 447 | 439 | |
| 448 | 440 | static void pdp1_cylinder_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 449 | 441 | { |
| 450 | | /* cylinder */ |
| 451 | 442 | switch(state) |
| 452 | 443 | { |
| 453 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 454 | 444 | case MESS_DEVINFO_INT_TYPE: info->i = IO_CYLINDER; break; |
| 455 | 445 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; |
| 456 | 446 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; |
| 457 | 447 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; |
| 458 | 448 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; |
| 459 | 449 | |
| 460 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 461 | 450 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_drum); break; |
| 462 | 451 | 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 | |
| 465 | 453 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "drm"); break; |
| 466 | 454 | } |
| 467 | 455 | } |
| r6749 | r6750 | |
| 471 | 459 | CONFIG_DEVICE(pdp1_printer_getinfo) |
| 472 | 460 | CONFIG_DEVICE(pdp1_cylinder_getinfo) |
| 473 | 461 | SYSTEM_CONFIG_END |
| 462 | */ |
| 474 | 463 | |
| 475 | | |
| 476 | 464 | /*************************************************************************** |
| 477 | 465 | |
| 478 | 466 | Game driver(s) |
| r6749 | r6750 | |
| 480 | 468 | ***************************************************************************/ |
| 481 | 469 | |
| 482 | 470 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 483 | | COMP( 1961, pdp1, 0, 0, pdp1, pdp1, 0, pdp1, "Digital Equipment Corporation", "PDP-1" , 0) |
| 471 | COMP( 1961, pdp1, 0, 0, pdp1, pdp1, 0, 0, "Digital Equipment Corporation", "PDP-1" , 0) |
src/mess/drivers/tx0.c
| r6749 | r6750 | |
| 376 | 376 | /* space filled with our font */ |
| 377 | 377 | ROM_END |
| 378 | 378 | |
| 379 | /* |
| 379 | 380 | static void tx0_punchtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 380 | 381 | { |
| 381 | | /* punchtape */ |
| 382 | 382 | switch(state) |
| 383 | 383 | { |
| 384 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 385 | 384 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PUNCHTAPE; break; |
| 386 | 385 | case MESS_DEVINFO_INT_COUNT: info->i = 2; break; |
| 387 | 386 | |
| 388 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 389 | 387 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(tx0_tape); break; |
| 390 | 388 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(tx0_tape); break; |
| 391 | 389 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_tape); break; |
| 392 | 390 | case MESS_DEVINFO_PTR_GET_DISPOSITIONS: info->getdispositions = tx0_tape_get_open_mode; break; |
| 393 | 391 | |
| 394 | | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 395 | 392 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap,rim"); break; |
| 396 | 393 | } |
| 397 | 394 | } |
| 398 | 395 | |
| 399 | 396 | static void tx0_printer_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 400 | 397 | { |
| 401 | | /* printer */ |
| 402 | 398 | switch(state) |
| 403 | 399 | { |
| 404 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 405 | 400 | case MESS_DEVINFO_INT_TYPE: info->i = IO_PRINTER; break; |
| 406 | 401 | case MESS_DEVINFO_INT_READABLE: info->i = 0; break; |
| 407 | 402 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; |
| 408 | 403 | case MESS_DEVINFO_INT_CREATABLE: info->i = 1; break; |
| 409 | 404 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; |
| 410 | 405 | |
| 411 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 412 | 406 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(tx0_typewriter); break; |
| 413 | 407 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_typewriter); break; |
| 414 | 408 | |
| 415 | | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 416 | 409 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "typ"); break; |
| 417 | 410 | } |
| 418 | 411 | } |
| 419 | 412 | |
| 420 | 413 | static void tx0_magtape_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 421 | 414 | { |
| 422 | | /* magtape */ |
| 423 | 415 | switch(state) |
| 424 | 416 | { |
| 425 | | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 426 | 417 | case MESS_DEVINFO_INT_TYPE: info->i = IO_MAGTAPE; break; |
| 427 | 418 | case MESS_DEVINFO_INT_READABLE: info->i = 1; break; |
| 428 | 419 | case MESS_DEVINFO_INT_WRITEABLE: info->i = 1; break; |
| 429 | 420 | case MESS_DEVINFO_INT_CREATABLE: info->i = 0; break; |
| 430 | 421 | case MESS_DEVINFO_INT_COUNT: info->i = 1; break; |
| 431 | 422 | |
| 432 | | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 433 | 423 | case MESS_DEVINFO_PTR_START: info->start = DEVICE_START_NAME(tx0_magtape); break; |
| 434 | 424 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(tx0_magtape); break; |
| 435 | 425 | case MESS_DEVINFO_PTR_UNLOAD: info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_magtape); break; |
| 436 | 426 | |
| 437 | | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 438 | 427 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "tap"); break; |
| 439 | 428 | } |
| 440 | 429 | } |
| r6749 | r6750 | |
| 444 | 433 | CONFIG_DEVICE(tx0_magtape_getinfo) |
| 445 | 434 | CONFIG_DEVICE(tx0_printer_getinfo) |
| 446 | 435 | SYSTEM_CONFIG_END |
| 436 | */ |
| 447 | 437 | |
| 448 | | |
| 449 | 438 | /*************************************************************************** |
| 450 | 439 | |
| 451 | 440 | Game driver(s) |
| r6749 | r6750 | |
| 453 | 442 | ***************************************************************************/ |
| 454 | 443 | |
| 455 | 444 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 456 | | COMP( 1956, tx0_64kw, 0, 0, tx0_64kw, tx0, tx0, tx0, "MIT", "TX-0 original demonstrator (64 kWords of RAM)" , 0) |
| 457 | | COMP( 1962, tx0_8kw, tx0_64kw, 0, tx0_8kw, tx0, tx0, tx0, "MIT", "TX-0 upgraded system (8 kWords of RAM)" , 0) |
| 445 | COMP( 1956, tx0_64kw, 0, 0, tx0_64kw, tx0, tx0, 0, "MIT", "TX-0 original demonstrator (64 kWords of RAM)" , 0) |
| 446 | COMP( 1962, tx0_8kw, tx0_64kw, 0, tx0_8kw, tx0, tx0, 0, "MIT", "TX-0 upgraded system (8 kWords of RAM)" , 0) |