src/mess/machine/cgenie.c
| r1612 | r1613 | |
| 213 | 213 | |
| 214 | 214 | static void cgenie_fdc_callback(wd17xx_state_t event, void *param); |
| 215 | 215 | |
| 216 | | static void cgenie_machine_reset(running_machine *machine) |
| 216 | MACHINE_RESET( cgenie ) |
| 217 | 217 | { |
| 218 | 218 | UINT8 *ROM = memory_region(REGION_CPU1); |
| 219 | 219 | |
| r1612 | r1613 | |
| 332 | 332 | /* set up FDC */ |
| 333 | 333 | wd17xx_init(WD_TYPE_179X, cgenie_fdc_callback, NULL); |
| 334 | 334 | |
| 335 | | add_reset_callback(machine, cgenie_machine_reset); |
| 336 | 335 | add_exit_callback(machine, tape_put_close); |
| 337 | 336 | } |
| 338 | 337 | |
src/mess/drivers/vip.c
| r1612 | r1613 | |
| 168 | 168 | |
| 169 | 169 | static MACHINE_RESET( vip ) |
| 170 | 170 | { |
| 171 | | machine_reset_cdp1861(machine); |
| 171 | MACHINE_RESET_CALL(cdp1861); |
| 172 | 172 | memory_set_bank(1, 1); |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | /* Machine Drivers */ |
| 176 | 176 | |
| 177 | 177 | static MACHINE_DRIVER_START( vip ) |
| 178 | | |
| 179 | | // basic machine hardware |
| 180 | | |
| 178 | /* basic machine hardware */ |
| 181 | 179 | MDRV_CPU_ADD(CDP1802, XTAL/2) |
| 182 | 180 | MDRV_CPU_PROGRAM_MAP(vip_map, 0) |
| 183 | 181 | MDRV_CPU_IO_MAP(vip_io_map, 0) |
| r1612 | r1613 | |
| 186 | 184 | MDRV_MACHINE_START(vip) |
| 187 | 185 | MDRV_MACHINE_RESET(vip) |
| 188 | 186 | |
| 189 | | // video hardware |
| 190 | | |
| 187 | /* video hardware */ |
| 191 | 188 | MDRV_SCREEN_ADD("main", 0) |
| 192 | 189 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 193 | 190 | MDRV_SCREEN_RAW_PARAMS(XTAL/2, CDP1861_SCREEN_WIDTH, CDP1861_HBLANK_END, CDP1861_HBLANK_START, CDP1861_TOTAL_SCANLINES, CDP1861_SCANLINE_VBLANK_END, CDP1861_SCANLINE_VBLANK_START) |
| r1612 | r1613 | |
| 197 | 194 | MDRV_VIDEO_START(cdp1861) |
| 198 | 195 | MDRV_VIDEO_UPDATE(cdp1861) |
| 199 | 196 | |
| 200 | | // sound hardware |
| 201 | | |
| 197 | /* sound hardware */ |
| 202 | 198 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 203 | 199 | MDRV_SOUND_ADD(BEEP, 0) |
| 204 | 200 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
src/mess/drivers/nc.c
| r1612 | r1613 | |
| 948 | 948 | }, |
| 949 | 949 | }; |
| 950 | 950 | |
| 951 | | static void nc100_machine_reset(running_machine *machine) |
| 951 | static MACHINE_RESET( nc100 ) |
| 952 | 952 | { |
| 953 | 953 | /* 256k of rom */ |
| 954 | 954 | nc_membank_rom_mask = 0x0f; |
| r1612 | r1613 | |
| 990 | 990 | { |
| 991 | 991 | nc_type = NC_TYPE_1xx; |
| 992 | 992 | |
| 993 | | add_reset_callback(machine, nc100_machine_reset); |
| 994 | 993 | add_exit_callback(machine, nc100_machine_stop); |
| 995 | 994 | } |
| 996 | 995 | |
| r1612 | r1613 | |
| 1338 | 1337 | } |
| 1339 | 1338 | #endif |
| 1340 | 1339 | |
| 1341 | | static void nc200_machine_reset(running_machine *machine) |
| 1340 | static MACHINE_RESET( nc200 ) |
| 1342 | 1341 | { |
| 1343 | 1342 | /* 512k of rom */ |
| 1344 | 1343 | nc_membank_rom_mask = 0x1f; |
| r1612 | r1613 | |
| 1392 | 1391 | { |
| 1393 | 1392 | nc_type = NC_TYPE_200; |
| 1394 | 1393 | |
| 1395 | | add_reset_callback(machine, nc200_machine_reset); |
| 1396 | 1394 | add_exit_callback(machine, nc200_machine_stop); |
| 1397 | 1395 | } |
| 1398 | 1396 | |
| r1612 | r1613 | |
| 1667 | 1665 | MDRV_INTERLEAVE(1) |
| 1668 | 1666 | |
| 1669 | 1667 | MDRV_MACHINE_START( nc100 ) |
| 1668 | MDRV_MACHINE_RESET( nc100 ) |
| 1670 | 1669 | |
| 1671 | 1670 | /* video hardware */ |
| 1672 | 1671 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| r1612 | r1613 | |
| 1695 | 1694 | MDRV_CPU_IO_MAP(nc200_io, 0) |
| 1696 | 1695 | |
| 1697 | 1696 | MDRV_MACHINE_START( nc200 ) |
| 1697 | MDRV_MACHINE_RESET( nc200 ) |
| 1698 | 1698 | |
| 1699 | 1699 | /* video hardware */ |
| 1700 | 1700 | MDRV_SCREEN_SIZE(NC200_SCREEN_WIDTH, NC200_SCREEN_HEIGHT) |
src/mess/drivers/tx0.c
| r1612 | r1613 | |
| 330 | 330 | /* basic machine hardware */ |
| 331 | 331 | /* TX0 CPU @ approx. 167 kHz (no master clock, but the memory cycle time is |
| 332 | 332 | approximately 6usec) */ |
| 333 | | MDRV_CPU_ADD(TX0_64KW, 166667) |
| 333 | MDRV_CPU_ADD_TAG("main", TX0_64KW, 166667) |
| 334 | 334 | MDRV_CPU_CONFIG(tx0_reset_param) |
| 335 | 335 | MDRV_CPU_PROGRAM_MAP(tx0_64kw_map, 0) |
| 336 | 336 | /*MDRV_CPU_PORTS(readport, writeport)*/ |
| r1612 | r1613 | |
| 343 | 343 | /*MDRV_INTERLEAVE(interleave)*/ |
| 344 | 344 | |
| 345 | 345 | MDRV_MACHINE_START( tx0 ) |
| 346 | MDRV_MACHINE_RESET( tx0 ) |
| 346 | 347 | |
| 347 | 348 | /* video hardware (includes the control panel and typewriter output) */ |
| 348 | 349 | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| r1612 | r1613 | |
| 358 | 359 | MDRV_VIDEO_START(tx0) |
| 359 | 360 | MDRV_VIDEO_EOF(crt) |
| 360 | 361 | MDRV_VIDEO_UPDATE(tx0) |
| 361 | | |
| 362 | | /* no sound */ |
| 363 | | |
| 364 | 362 | MACHINE_DRIVER_END |
| 365 | 363 | |
| 366 | 364 | static MACHINE_DRIVER_START(tx0_8kw) |
| 365 | MDRV_IMPORT_FROM(tx0_64kw) |
| 367 | 366 | |
| 368 | 367 | /* basic machine hardware */ |
| 369 | 368 | /* TX0 CPU @ approx. 167 kHz (no master clock, but the memory cycle time is |
| 370 | 369 | approximately 6usec) */ |
| 371 | | MDRV_CPU_ADD(TX0_8KW, 166667) |
| 370 | MDRV_CPU_MODIFY("main") |
| 372 | 371 | MDRV_CPU_CONFIG(tx0_reset_param) |
| 373 | 372 | MDRV_CPU_PROGRAM_MAP(tx0_8kw_map, 0) |
| 374 | 373 | /*MDRV_CPU_PORTS(readport, writeport)*/ |
| 375 | | /* dummy interrupt: handles input */ |
| 376 | | MDRV_CPU_VBLANK_INT(tx0_interrupt, 1) |
| 377 | | /*MDRV_CPU_PERIODIC_INT(func, rate)*/ |
| 378 | | |
| 379 | | MDRV_SCREEN_REFRESH_RATE(refresh_rate) |
| 380 | | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 381 | | /*MDRV_INTERLEAVE(interleave)*/ |
| 382 | | |
| 383 | | MDRV_MACHINE_START( tx0 ) |
| 384 | | |
| 385 | | /* video hardware (includes the control panel and typewriter output) */ |
| 386 | | MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER) |
| 387 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 388 | | MDRV_SCREEN_SIZE(virtual_width, virtual_height) |
| 389 | | MDRV_SCREEN_VISIBLE_AREA(0, virtual_width-1, 0, virtual_height-1) |
| 390 | | |
| 391 | | MDRV_GFXDECODE(tx0) |
| 392 | | MDRV_PALETTE_LENGTH(pen_crt_num_levels + (sizeof(palette) / sizeof(palette[0]) / 3)) |
| 393 | | MDRV_COLORTABLE_LENGTH(sizeof(tx0_colortable) / sizeof(tx0_colortable[0])) |
| 394 | | |
| 395 | | MDRV_PALETTE_INIT(tx0) |
| 396 | | MDRV_VIDEO_START(tx0) |
| 397 | | MDRV_VIDEO_EOF(crt) |
| 398 | | MDRV_VIDEO_UPDATE(tx0) |
| 399 | | |
| 400 | | /* no sound */ |
| 401 | | |
| 402 | 374 | MACHINE_DRIVER_END |
| 403 | 375 | |
| 404 | 376 | ROM_START(tx0_64kw) |
src/mess/drivers/avigo.c
| r1612 | r1613 | |
| 398 | 398 | return address; |
| 399 | 399 | } |
| 400 | 400 | |
| 401 | | static void avigo_machine_reset(running_machine *machine) |
| 401 | static MACHINE_RESET( avigo ) |
| 402 | 402 | { |
| 403 | 403 | int i; |
| 404 | 404 | unsigned char *addr; |
| r1612 | r1613 | |
| 456 | 456 | /* a timer used to check status of pen */ |
| 457 | 457 | /* an interrupt is generated when the pen is pressed to the screen */ |
| 458 | 458 | timer_pulse(ATTOTIME_IN_HZ(50), NULL, 0, avigo_dummy_timer_callback); |
| 459 | | |
| 460 | | add_reset_callback(machine, avigo_machine_reset); |
| 461 | 459 | } |
| 462 | 460 | |
| 463 | 461 | |
| r1612 | r1613 | |
| 872 | 870 | MDRV_INTERLEAVE(1) |
| 873 | 871 | |
| 874 | 872 | MDRV_MACHINE_START( avigo ) |
| 873 | MDRV_MACHINE_RESET( avigo ) |
| 875 | 874 | MDRV_NVRAM_HANDLER( avigo ) |
| 876 | 875 | |
| 877 | 876 | /* video hardware */ |