src/mess/machine/zx.c
| r4169 | r4170 | |
| 10 | 10 | #include "cpu/z80/z80.h" |
| 11 | 11 | #include "includes/zx.h" |
| 12 | 12 | #include "devices/cassette.h" |
| 13 | #include "sound/speaker.h" |
| 13 | 14 | |
| 14 | 15 | #define video_screen_get_refresh(screen) (((screen_config *)(screen)->inline_config)->refresh) |
| 15 | 16 | |
| r4169 | r4170 | |
| 27 | 28 | UINT8 *RAM = memory_region(space->machine, "main"); |
| 28 | 29 | RAM[offset + 0x4000] = data; |
| 29 | 30 | |
| 30 | | if ((offset > 0x29) && (offset < 0x400)) |
| 31 | if (data & 0x40) |
| 31 | 32 | { |
| 32 | | if (data & 0x40) |
| 33 | | { |
| 34 | | memory_write_byte (space, offset | 0xc000, data); |
| 35 | | RAM[offset | 0xc000] = data; |
| 36 | | } |
| 37 | | else |
| 38 | | { |
| 39 | | memory_write_byte (space, offset | 0xc000, 0); |
| 40 | | RAM[offset | 0xc000] = 0; |
| 41 | | } |
| 33 | memory_write_byte (space, offset | 0xc000, data); |
| 34 | RAM[offset | 0xc000] = data; |
| 42 | 35 | } |
| 36 | else |
| 37 | { |
| 38 | memory_write_byte (space, offset | 0xc000, 0); |
| 39 | RAM[offset | 0xc000] = 0; |
| 40 | } |
| 43 | 41 | } |
| 44 | 42 | |
| 45 | 43 | /* I know this looks really pointless... but it has to be here */ |
| r4169 | r4170 | |
| 72 | 70 | return address; |
| 73 | 71 | } |
| 74 | 72 | |
| 75 | | static DIRECT_UPDATE_HANDLER ( lambda_setdirect ) |
| 73 | static DIRECT_UPDATE_HANDLER ( pow3000_setdirect ) |
| 76 | 74 | { |
| 77 | 75 | if (address & 0xc000) |
| 78 | 76 | zx_ula_r(space->machine, address, "gfx1", 1); |
| r4169 | r4170 | |
| 85 | 83 | zx_tape_bit = 0x80; |
| 86 | 84 | } |
| 87 | 85 | |
| 88 | | MACHINE_RESET ( lambda ) |
| 86 | MACHINE_RESET ( pow3000 ) |
| 89 | 87 | { |
| 90 | | memory_set_direct_update_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), lambda_setdirect); |
| 88 | memory_set_direct_update_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), pow3000_setdirect); |
| 91 | 89 | zx_tape_bit = 0x80; |
| 92 | 90 | } |
| 93 | 91 | |
| r4169 | r4170 | |
| 104 | 102 | |
| 105 | 103 | READ8_HANDLER ( zx80_io_r ) |
| 106 | 104 | { |
| 107 | | /* port FE = read keyboard, cass bit and NTSC/PAL diode |
| 108 | | The upper 8 bits are used to select a keyboard scan line */ |
| 105 | /* port FE = read keyboard, NTSC/PAL diode, and cass bit; turn off HSYNC-generator/cass-out |
| 106 | The upper 8 bits are used to select a keyboard scan line |
| 109 | 107 | |
| 108 | The diode doesn't make any visual difference, but it's in the schematic, and used by the code. */ |
| 109 | |
| 110 | 110 | UINT8 data = 0xff; |
| 111 | 111 | UINT8 offs = offset & 0xff; |
| 112 | 112 | |
| r4169 | r4170 | |
| 176 | 176 | READ8_HANDLER ( zx81_io_r ) |
| 177 | 177 | { |
| 178 | 178 | /* port FB = read printer status, not emulated |
| 179 | | FE = read keyboard, cass bit and NTSC/PAL diode; turn off HSYNC generator if NMI is off |
| 179 | FE = read keyboard, NTSC/PAL diode, and cass bit; turn off HSYNC-generator/cass-out |
| 180 | 180 | The upper 8 bits are used to select a keyboard scan line */ |
| 181 | 181 | |
| 182 | 182 | UINT8 data = 0xff; |
| r4169 | r4170 | |
| 245 | 245 | return data; |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | | READ8_HANDLER ( pow3000_io_r ) |
| 248 | READ8_HANDLER ( pc8300_io_r ) |
| 249 | 249 | { |
| 250 | /* port F5 = sound |
| 251 | F6 = unknown |
| 252 | FB = read printer status, not emulated |
| 253 | FE = read keyboard and cass bit; turn off HSYNC-generator/cass-out |
| 254 | The upper 8 bits are used to select a keyboard scan line. |
| 255 | No TV diode */ |
| 256 | |
| 250 | 257 | UINT8 data = 0xff; |
| 251 | 258 | UINT8 offs = offset & 0xff; |
| 259 | static UINT8 speaker_state = 0; |
| 252 | 260 | |
| 261 | if (offs == 0xf5) |
| 262 | { |
| 263 | speaker_state ^= 1; |
| 264 | speaker_level_w(0, speaker_state); |
| 265 | } |
| 266 | else |
| 253 | 267 | if (offs == 0xfe) |
| 254 | 268 | { |
| 255 | | UINT8 extra0 = input_port_read(space->machine, "SPC0"); |
| 256 | 269 | UINT8 extra1 = input_port_read(space->machine, "SPC1"); |
| 257 | 270 | UINT8 extra2 = input_port_read(space->machine, "SPC2"); |
| 258 | 271 | |
| 259 | 272 | if ((offset & 0x0100) == 0) |
| 260 | 273 | { |
| 261 | | data &= input_port_read(space->machine, "ROW0") & extra0; |
| 274 | data &= input_port_read(space->machine, "ROW0"); |
| 262 | 275 | /* SHIFT for extra keys */ |
| 263 | | if (extra0 != 0xff || extra1 != 0xff || extra2 != 0xff) |
| 276 | if (extra1 != 0xff || extra2 != 0xff) |
| 264 | 277 | data &= ~0x01; |
| 265 | 278 | } |
| 266 | 279 | if ((offset & 0x0200) == 0) |
| r4169 | r4170 | |
| 268 | 281 | if ((offset & 0x0400) == 0) |
| 269 | 282 | data &= input_port_read(space->machine, "ROW2"); |
| 270 | 283 | if ((offset & 0x0800) == 0) |
| 271 | | data &= input_port_read(space->machine, "ROW3"); |
| 284 | data &= input_port_read(space->machine, "ROW3") & extra1; |
| 272 | 285 | if ((offset & 0x1000) == 0) |
| 273 | | data &= input_port_read(space->machine, "ROW4"); |
| 286 | data &= input_port_read(space->machine, "ROW4") & extra2; |
| 274 | 287 | if ((offset & 0x2000) == 0) |
| 275 | 288 | data &= input_port_read(space->machine, "ROW5"); |
| 276 | 289 | if ((offset & 0x4000) == 0) |
| 277 | | data &= input_port_read(space->machine, "ROW6") & extra1; |
| 290 | data &= input_port_read(space->machine, "ROW6"); |
| 278 | 291 | if ((offset & 0x8000) == 0) |
| 279 | | data &= input_port_read(space->machine, "ROW7") & extra2; |
| 292 | data &= input_port_read(space->machine, "ROW7"); |
| 280 | 293 | |
| 281 | | if (!input_port_read(space->machine, "CONFIG")) |
| 282 | | data &= ~0x40; |
| 283 | | |
| 284 | 294 | cassette_output(devtag_get_device(space->machine, CASSETTE, "cassette"), +0.75); |
| 285 | 295 | |
| 286 | 296 | if (ula_irq_active) |
| 287 | 297 | { |
| 288 | 298 | zx_ula_bkgnd(space->machine, 0); |
| 289 | 299 | ula_irq_active = 0; |
| 290 | | LOG_ZX81_IOR("ULA IRQs off"); |
| 300 | |
| 301 | // LOG_ZX81_IOR("ULA IRQs off"); |
| 291 | 302 | } |
| 292 | 303 | else |
| 293 | 304 | { |
| r4169 | r4170 | |
| 299 | 310 | |
| 300 | 311 | data &= ~zx_tape_bit; |
| 301 | 312 | |
| 302 | | LOG_ZX81_IOR("Tape"); |
| 313 | // LOG_ZX81_IOR("Tape"); |
| 303 | 314 | } |
| 304 | 315 | if (ula_frame_vsync == 3) |
| 305 | 316 | { |
| r4169 | r4170 | |
| 308 | 319 | } |
| 309 | 320 | } |
| 310 | 321 | else |
| 311 | | LOG_ZX81_IOR("Unknown port"); |
| 322 | LOG_ZX81_IOR("Unmapped port"); |
| 312 | 323 | |
| 313 | 324 | return data; |
| 314 | 325 | } |
| 315 | 326 | |
| 316 | | WRITE8_HANDLER( zx80_io_w ) |
| 327 | READ8_HANDLER ( pow3000_io_r ) |
| 317 | 328 | { |
| 318 | | /* port FF = write HSYNC and cass data */ |
| 319 | | |
| 320 | | UINT8 offs = offset & 0xff; |
| 329 | /* port 7E = read NTSC/PAL diode |
| 330 | F5 = sound |
| 331 | F6 = unknown |
| 332 | FB = read printer status, not emulated |
| 333 | FE = read keyboard and cass bit; turn off HSYNC-generator/cass-out |
| 334 | The upper 8 bits are used to select a keyboard scan line */ |
| 321 | 335 | |
| 322 | | if (offs == 0xff) |
| 323 | | cassette_output(devtag_get_device(space->machine, CASSETTE, "cassette"), -0.75); |
| 324 | | else |
| 325 | | LOG_ZX81_IOR("Unmapped port"); |
| 326 | | } |
| 327 | | |
| 328 | | WRITE8_HANDLER ( zx81_io_w ) |
| 329 | | { |
| 330 | | /* port FB = write data to printer |
| 331 | | FD = turn off NMI generator |
| 332 | | FE = turn on NMI generator |
| 333 | | FF = write HSYNC and cass data */ |
| 334 | | |
| 335 | | const device_config *screen = video_screen_first(space->machine->config); |
| 336 | | int height = video_screen_get_height(screen); |
| 336 | UINT8 data = 0xff; |
| 337 | 337 | UINT8 offs = offset & 0xff; |
| 338 | static UINT8 speaker_state = 0; |
| 338 | 339 | |
| 339 | | if (offs == 0xfd) |
| 340 | if (offs == 0x7e) |
| 340 | 341 | { |
| 341 | | timer_reset(ula_nmi, attotime_never); |
| 342 | | |
| 343 | | LOG_ZX81_IOW("ULA NMIs off"); |
| 342 | data = (input_port_read(space->machine, "CONFIG")); |
| 344 | 343 | } |
| 345 | 344 | else |
| 346 | | if (offs == 0xfe) |
| 345 | if (offs == 0xf5) |
| 347 | 346 | { |
| 348 | | timer_adjust_periodic(ula_nmi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], 207)); |
| 349 | | |
| 350 | | LOG_ZX81_IOW("ULA NMIs on"); |
| 351 | | |
| 352 | | /* remove the IRQ */ |
| 353 | | ula_irq_active = 0; |
| 347 | speaker_state ^= 1; |
| 348 | speaker_level_w(0, speaker_state); |
| 354 | 349 | } |
| 355 | 350 | else |
| 356 | | if (offs == 0xff) |
| 351 | if (offs == 0xfe) |
| 357 | 352 | { |
| 358 | | cassette_output(devtag_get_device(space->machine, CASSETTE, "cassette"), -0.75); |
| 359 | | zx_ula_bkgnd(space->machine, 1); |
| 360 | | if (ula_frame_vsync == 2) |
| 361 | | { |
| 362 | | cpu_spinuntil_time(space->cpu,video_screen_get_time_until_pos(space->machine->primary_screen, height - 1, 0)); |
| 363 | | ula_scanline_count = height - 1; |
| 364 | | logerror ("S: %d B: %d\n", video_screen_get_vpos(space->machine->primary_screen), video_screen_get_hpos(space->machine->primary_screen)); |
| 365 | | } |
| 353 | UINT8 extra0 = input_port_read(space->machine, "SPC0"); |
| 354 | UINT8 extra1 = input_port_read(space->machine, "SPC1"); |
| 355 | UINT8 extra2 = input_port_read(space->machine, "SPC2"); |
| 366 | 356 | |
| 367 | | LOG_ZX81_IOW("ULA IRQs on"); |
| 368 | | } |
| 369 | | else |
| 370 | | LOG_ZX81_IOR("Unmapped port"); |
| 371 | | } |
| 372 | | |
| 373 | | READ8_HANDLER ( zx_io_r ) |
| 374 | | { |
| 375 | | const device_config *screen = video_screen_first(space->machine->config); |
| 376 | | int data = 0xff; |
| 377 | | |
| 378 | | if ((offset & 1) == 0) |
| 379 | | { |
| 380 | | int extra1 = input_port_read(space->machine, "SPC0"); |
| 381 | | int extra2 = input_port_read(space->machine, "SPC1"); |
| 382 | | |
| 383 | | // ula_scancode_count = 0; |
| 384 | 357 | if ((offset & 0x0100) == 0) |
| 385 | 358 | { |
| 386 | | data &= input_port_read(space->machine, "ROW0"); |
| 359 | data &= input_port_read(space->machine, "ROW0") & extra0; |
| 387 | 360 | /* SHIFT for extra keys */ |
| 388 | | if (extra1 != 0xff || extra2 != 0xff) |
| 361 | if (extra0 != 0xff || extra1 != 0xff || extra2 != 0xff) |
| 389 | 362 | data &= ~0x01; |
| 390 | 363 | } |
| 391 | 364 | if ((offset & 0x0200) == 0) |
| r4169 | r4170 | |
| 393 | 366 | if ((offset & 0x0400) == 0) |
| 394 | 367 | data &= input_port_read(space->machine, "ROW2"); |
| 395 | 368 | if ((offset & 0x0800) == 0) |
| 396 | | data &= input_port_read(space->machine, "ROW3") & extra1; |
| 369 | data &= input_port_read(space->machine, "ROW3"); |
| 397 | 370 | if ((offset & 0x1000) == 0) |
| 398 | | data &= input_port_read(space->machine, "ROW4") & extra2; |
| 371 | data &= input_port_read(space->machine, "ROW4"); |
| 399 | 372 | if ((offset & 0x2000) == 0) |
| 400 | 373 | data &= input_port_read(space->machine, "ROW5"); |
| 401 | 374 | if ((offset & 0x4000) == 0) |
| 402 | | data &= input_port_read(space->machine, "ROW6"); |
| 375 | data &= input_port_read(space->machine, "ROW6") & extra1; |
| 403 | 376 | if ((offset & 0x8000) == 0) |
| 404 | | data &= input_port_read(space->machine, "ROW7"); |
| 405 | | if (video_screen_get_refresh(screen) > 55) |
| 406 | | data &= ~0x40; |
| 377 | data &= input_port_read(space->machine, "ROW7") & extra2; |
| 407 | 378 | |
| 379 | cassette_output(devtag_get_device(space->machine, CASSETTE, "cassette"), +0.75); |
| 380 | |
| 408 | 381 | if (ula_irq_active) |
| 409 | 382 | { |
| 410 | 383 | zx_ula_bkgnd(space->machine, 0); |
| 411 | 384 | ula_irq_active = 0; |
| 412 | | |
| 413 | 385 | LOG_ZX81_IOR("ULA IRQs off"); |
| 414 | 386 | } |
| 415 | 387 | else |
| r4169 | r4170 | |
| 422 | 394 | |
| 423 | 395 | data &= ~zx_tape_bit; |
| 424 | 396 | |
| 425 | | LOG_ZX81_IOR("Tape"); |
| 397 | // LOG_ZX81_IOR("Tape"); |
| 426 | 398 | } |
| 427 | 399 | if (ula_frame_vsync == 3) |
| 428 | 400 | { |
| r4169 | r4170 | |
| 431 | 403 | } |
| 432 | 404 | } |
| 433 | 405 | else |
| 434 | | LOG_ZX81_IOR("Unmapped port"); |
| 406 | LOG_ZX81_IOR("Unknown port"); |
| 435 | 407 | |
| 436 | 408 | return data; |
| 437 | 409 | } |
| 438 | 410 | |
| 439 | | WRITE8_HANDLER ( zx_io_w ) |
| 411 | WRITE8_HANDLER( zx80_io_w ) |
| 440 | 412 | { |
| 441 | | /* port FB = write data to printer |
| 413 | /* port FF = write HSYNC and cass data */ |
| 414 | |
| 415 | UINT8 offs = offset & 0xff; |
| 416 | |
| 417 | if (offs == 0xff) |
| 418 | cassette_output(devtag_get_device(space->machine, CASSETTE, "cassette"), -0.75); |
| 419 | else |
| 420 | LOG_ZX81_IOR("Unmapped port"); |
| 421 | } |
| 422 | |
| 423 | WRITE8_HANDLER ( zx81_io_w ) |
| 424 | { |
| 425 | /* port F5 = unknown, pc8300/pow3000/lambda only |
| 426 | F6 = unknown, pc8300/pow3000/lambda only |
| 427 | FB = write data to printer, not emulated |
| 442 | 428 | FD = turn off NMI generator |
| 443 | 429 | FE = turn on NMI generator |
| 444 | 430 | FF = write HSYNC and cass data */ |
| r4169 | r4170 | |
| 447 | 433 | int height = video_screen_get_height(screen); |
| 448 | 434 | UINT8 offs = offset & 0xff; |
| 449 | 435 | |
| 450 | | if (!(offs & 2)) |
| 436 | if (offs == 0xfd) |
| 451 | 437 | { |
| 452 | 438 | timer_reset(ula_nmi, attotime_never); |
| 453 | 439 | |
| 454 | 440 | LOG_ZX81_IOW("ULA NMIs off"); |
| 455 | 441 | } |
| 456 | 442 | else |
| 457 | | if (!(offs & 1)) |
| 443 | if (offs == 0xfe) |
| 458 | 444 | { |
| 459 | 445 | timer_adjust_periodic(ula_nmi, attotime_zero, 0, cpu_clocks_to_attotime(space->machine->cpu[0], 207)); |
| 460 | 446 | |
| r4169 | r4170 | |
| 464 | 450 | ula_irq_active = 0; |
| 465 | 451 | } |
| 466 | 452 | else |
| 467 | | // if (offs == 0xff) |
| 453 | if (offs == 0xff) |
| 468 | 454 | { |
| 455 | cassette_output(devtag_get_device(space->machine, CASSETTE, "cassette"), -0.75); |
| 469 | 456 | zx_ula_bkgnd(space->machine, 1); |
| 470 | 457 | if (ula_frame_vsync == 2) |
| 471 | 458 | { |
| r4169 | r4170 | |
| 476 | 463 | |
| 477 | 464 | LOG_ZX81_IOW("ULA IRQs on"); |
| 478 | 465 | } |
| 479 | | // else |
| 480 | | // LOG_ZX81_IOR("Unmapped port"); |
| 466 | else |
| 467 | LOG_ZX81_IOR("Unmapped port"); |
| 481 | 468 | } |
| 469 | |
src/mess/drivers/zx.c
| r4169 | r4170 | |
| 12 | 12 | Some cleanups. Two non-working TESTDRIVERS added. |
| 13 | 13 | 14.05.2004 Finally fixed and readded. |
| 14 | 14 | |
| 15 | Changes done by Robbbert in Jan 2009: |
| 16 | - Added the NTSC/PAL diode to all systems except pc8300 which doesn't support it. |
| 17 | - Applied NTSC timings to pc8300 only, all others depend on the diode. |
| 18 | - Many keyboard fixes, and descriptions added to keys. |
| 19 | - All ram packs up to 32k are supported. |
| 20 | - Fixed .O files from causing an access violation. |
| 21 | - Enabled cassette saving. |
| 22 | - Many general fixes to pow3000/lambda. |
| 23 | - Added sound to pc8300/pow3000/lambda. |
| 24 | |
| 15 | 25 | To do: |
| 16 | | Tape saving (needs changes in video hardware emulation). |
| 17 | 26 | Some memory areas are not mirrored as they should. |
| 18 | | Video hardware is not fully emulated, so it does not support pseudo |
| 19 | | hi-res and hi-res modes. |
| 27 | Video hardware is not fully emulated, so it does not support pseudo hi-res and hi-res modes. |
| 20 | 28 | Some memory packs are unemulated. |
| 29 | h4th and tree4th need their address maps worked out (eg, the stack is set to FB80) |
| 30 | Most games don't work |
| 21 | 31 | |
| 22 | | Current issues: 4th and tree4th need their address maps worked out (eg, the stack is set to FB80) |
| 23 | | All drivers: Screen issues, and run extremely slowly |
| 24 | 32 | |
| 25 | | |
| 26 | 33 | ****************************************************************************/ |
| 27 | 34 | |
| 28 | 35 | #include "driver.h" |
| 29 | 36 | #include "cpu/z80/z80.h" |
| 30 | | #include "sound/dac.h" |
| 37 | //#include "sound/dac.h" |
| 38 | #include "sound/speaker.h" |
| 31 | 39 | #include "sound/wave.h" |
| 32 | 40 | #include "includes/zx.h" |
| 33 | 41 | #include "devices/cassette.h" |
| r4169 | r4170 | |
| 36 | 44 | /* Memory Maps */ |
| 37 | 45 | |
| 38 | 46 | static ADDRESS_MAP_START( zx80_map, ADDRESS_SPACE_PROGRAM, 8 ) |
| 39 | | AM_RANGE(0x0000, 0x3fff) AM_ROM |
| 40 | | AM_RANGE(0xc000, 0xcfff) AM_RAM AM_READWRITE(zx_ram_r,SMH_NOP) |
| 47 | AM_RANGE(0x0000, 0x1fff) AM_ROM |
| 48 | AM_RANGE(0x2000, 0x3fff) AM_READNOP AM_WRITENOP |
| 49 | AM_RANGE(0xc000, 0xffff) AM_RAM AM_READWRITE(zx_ram_r,SMH_NOP) |
| 41 | 50 | ADDRESS_MAP_END |
| 42 | 51 | |
| 43 | 52 | static ADDRESS_MAP_START( zx80_io_map, ADDRESS_SPACE_IO, 8 ) |
| r4169 | r4170 | |
| 48 | 57 | AM_RANGE(0x0000, 0xffff) AM_READWRITE(zx81_io_r, zx81_io_w) |
| 49 | 58 | ADDRESS_MAP_END |
| 50 | 59 | |
| 60 | static ADDRESS_MAP_START( pc8300_io_map, ADDRESS_SPACE_IO, 8 ) |
| 61 | AM_RANGE(0x0000, 0xffff) AM_READWRITE(pc8300_io_r, zx81_io_w) |
| 62 | ADDRESS_MAP_END |
| 63 | |
| 51 | 64 | static ADDRESS_MAP_START( pow3000_io_map, ADDRESS_SPACE_IO, 8 ) |
| 52 | 65 | AM_RANGE(0x0000, 0xffff) AM_READWRITE(pow3000_io_r, zx81_io_w) |
| 53 | 66 | ADDRESS_MAP_END |
| r4169 | r4170 | |
| 55 | 68 | /* Input Ports */ |
| 56 | 69 | |
| 57 | 70 | static INPUT_PORTS_START( zx80 ) |
| 58 | | PORT_START("RAM") |
| 59 | | |
| 60 | 71 | PORT_START("ROW0") |
| 61 | 72 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 62 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| 63 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| 64 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) PORT_CHAR('C') |
| 65 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 73 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z :") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') |
| 74 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X ; CLEAR") PORT_CODE(KEYCODE_X) PORT_CHAR('X') |
| 75 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C ? CLS") PORT_CODE(KEYCODE_C) PORT_CHAR('C') |
| 76 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V / GOSUB") PORT_CODE(KEYCODE_V) PORT_CHAR('V') |
| 66 | 77 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 67 | 78 | |
| 68 | 79 | PORT_START("ROW1") |
| 69 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 70 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 71 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| 72 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| 73 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 80 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A LIST") PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 81 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S STOP") PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 82 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D DIM") PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| 83 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F FOR") PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| 84 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G GOTO") PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 74 | 85 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 75 | 86 | |
| 76 | 87 | PORT_START("ROW2") |
| 77 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 78 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 79 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) PORT_CHAR('E') |
| 80 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) PORT_CHAR('R') |
| 81 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) PORT_CHAR('T') |
| 88 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q NEW") PORT_CODE(KEYCODE_Q) PORT_CHAR('Q') |
| 89 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W LOAD") PORT_CODE(KEYCODE_W) PORT_CHAR('W') |
| 90 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E SAVE") PORT_CODE(KEYCODE_E) PORT_CHAR('E') |
| 91 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R RUN") PORT_CODE(KEYCODE_R) PORT_CHAR('R') |
| 92 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T CONT") PORT_CODE(KEYCODE_T) PORT_CHAR('T') |
| 82 | 93 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 83 | 94 | |
| 84 | 95 | PORT_START("ROW3") |
| 85 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 EDIT") PORT_CODE(KEYCODE_1) PORT_CHAR('1') |
| 96 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1 NOT") PORT_CODE(KEYCODE_1) PORT_CHAR('1') |
| 86 | 97 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2 AND") PORT_CODE(KEYCODE_2) PORT_CHAR('2') |
| 87 | 98 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3 THEN") PORT_CODE(KEYCODE_3) PORT_CHAR('3') |
| 88 | 99 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4 TO") PORT_CODE(KEYCODE_4) PORT_CHAR('4') |
| r4169 | r4170 | |
| 91 | 102 | |
| 92 | 103 | PORT_START("ROW4") |
| 93 | 104 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0 RUBOUT") PORT_CODE(KEYCODE_0) PORT_CHAR('0') |
| 94 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9 GRAPHICS") PORT_CODE(KEYCODE_9) PORT_CHAR('9') |
| 105 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9 HOME") PORT_CODE(KEYCODE_9) PORT_CHAR('9') |
| 95 | 106 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8 RIGHT") PORT_CODE(KEYCODE_8) PORT_CHAR('8') |
| 96 | 107 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7 UP") PORT_CODE(KEYCODE_7) PORT_CHAR('7') |
| 97 | 108 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6 DOWN") PORT_CODE(KEYCODE_6) PORT_CHAR('6') |
| 98 | 109 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 99 | 110 | |
| 100 | 111 | PORT_START("ROW5") |
| 101 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P PRINT") PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 102 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O POKE") PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 103 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I INPUT") PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| 104 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U IF") PORT_CODE(KEYCODE_U) PORT_CHAR('U') |
| 105 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y RETURN") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 112 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P *") PORT_CODE(KEYCODE_P) PORT_CHAR('P') |
| 113 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O ) PRINT") PORT_CODE(KEYCODE_O) PORT_CHAR('O') |
| 114 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I ( INPUT") PORT_CODE(KEYCODE_I) PORT_CHAR('I') |
| 115 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U $ IF") PORT_CODE(KEYCODE_U) PORT_CHAR('U') |
| 116 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y \" REM") PORT_CODE(KEYCODE_Y) PORT_CHAR('Y') |
| 106 | 117 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 107 | 118 | |
| 108 | 119 | PORT_START("ROW6") |
| 109 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ENTER") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 110 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) PORT_CHAR('L') |
| 111 | | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) PORT_CHAR('K') |
| 112 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) PORT_CHAR('J') |
| 113 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 120 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("NEWLINE EDIT") PORT_CODE(KEYCODE_ENTER) PORT_CHAR(13) |
| 121 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L =") PORT_CODE(KEYCODE_L) PORT_CHAR('L') |
| 122 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K + LET") PORT_CODE(KEYCODE_K) PORT_CHAR('K') |
| 123 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J - RAND") PORT_CODE(KEYCODE_J) PORT_CHAR('J') |
| 124 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H ** POKE") PORT_CODE(KEYCODE_H) PORT_CHAR('H') |
| 114 | 125 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 115 | 126 | |
| 116 | 127 | PORT_START("ROW7") |
| 117 | | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE \xC2\xA3") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('\xA3') |
| 128 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SPACE \xC2\xA3 BREAK") PORT_CODE(KEYCODE_SPACE) PORT_CHAR(' ') PORT_CHAR('\xA3') |
| 118 | 129 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(". ,") PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR(',') |
| 119 | 130 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M >") PORT_CODE(KEYCODE_M) PORT_CHAR('M') PORT_CHAR('>') |
| 120 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N >") PORT_CODE(KEYCODE_N) PORT_CHAR('N') PORT_CHAR('<') |
| 121 | | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| 131 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N < NEXT") PORT_CODE(KEYCODE_N) PORT_CHAR('N') PORT_CHAR('<') |
| 132 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B OR RET") PORT_CODE(KEYCODE_B) PORT_CHAR('B') |
| 122 | 133 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 123 | 134 | |
| 124 | 135 | PORT_START("SPC1") /* special keys 1 */ |
| r4169 | r4170 | |
| 127 | 138 | |
| 128 | 139 | PORT_START("SPC2") /* special keys 2 */ |
| 129 | 140 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("BACKSPACE") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 130 | | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("GRAPHICS") PORT_CODE(KEYCODE_LALT) PORT_CHAR(UCHAR_SHIFT_2) |
| 131 | 141 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x92") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| 132 | 142 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x91") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 133 | 143 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x93") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 134 | | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 144 | PORT_BIT( 0xe2, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 135 | 145 | |
| 136 | 146 | PORT_START("CONFIG") /* config diode on main board */ |
| 137 | 147 | PORT_CONFNAME( 0x40, 0x40, "TV system") |
| r4169 | r4170 | |
| 139 | 149 | PORT_CONFSETTING( 0x40, "PAL") |
| 140 | 150 | INPUT_PORTS_END |
| 141 | 151 | |
| 142 | | static INPUT_PORTS_START( zx81 ) |
| 152 | static INPUT_PORTS_START( pc8300 ) |
| 143 | 153 | PORT_START("ROW0") |
| 144 | 154 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("SHIFT") PORT_CODE(KEYCODE_LSHIFT) PORT_CHAR(UCHAR_SHIFT_1) |
| 145 | 155 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z :") PORT_CODE(KEYCODE_Z) PORT_CHAR('Z') PORT_CHAR(':') |
| r4169 | r4170 | |
| 215 | 225 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x91") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 216 | 226 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x93") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 217 | 227 | PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 228 | INPUT_PORTS_END |
| 218 | 229 | |
| 230 | static INPUT_PORTS_START( zx81 ) |
| 231 | PORT_INCLUDE(pc8300) |
| 232 | |
| 219 | 233 | PORT_START("CONFIG") /* config diode on main board */ |
| 220 | 234 | PORT_CONFNAME( 0x40, 0x40, "TV system") |
| 221 | 235 | PORT_CONFSETTING( 0x00, "NTSC") |
| r4169 | r4170 | |
| 303 | 317 | PORT_BIT( 0xe5, IP_ACTIVE_LOW, IPT_UNUSED) |
| 304 | 318 | |
| 305 | 319 | PORT_START("CONFIG") /* config diode on main board */ |
| 306 | | PORT_CONFNAME( 0x40, 0x00, "TV system") |
| 320 | PORT_CONFNAME( 0x01, 0x00, "TV system") |
| 307 | 321 | PORT_CONFSETTING( 0x00, "NTSC") |
| 308 | | PORT_CONFSETTING( 0x40, "PAL") |
| 322 | PORT_CONFSETTING( 0x01, "PAL") |
| 309 | 323 | INPUT_PORTS_END |
| 310 | 324 | |
| 311 | 325 | /* Graphics Layouts */ |
| r4169 | r4170 | |
| 337 | 351 | GFXDECODE_ENTRY( "gfx1", 0x0000, zx_char_layout, 0, 2 ) |
| 338 | 352 | GFXDECODE_END |
| 339 | 353 | |
| 340 | | static GFXDECODE_START( pow3000 ) |
| 341 | | GFXDECODE_ENTRY( "gfx1", 0x0000, zx_char_layout, 0, 2 ) |
| 342 | | GFXDECODE_END |
| 343 | 354 | |
| 344 | 355 | /* Palette Initialization */ |
| 345 | 356 | |
| r4169 | r4170 | |
| 419 | 430 | MDRV_VIDEO_EOF(zx) |
| 420 | 431 | MDRV_VIDEO_UPDATE(generic_bitmapped) |
| 421 | 432 | |
| 422 | | // sound hardware |
| 433 | |
| 434 | /* sound hardware */ |
| 423 | 435 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 424 | | MDRV_SOUND_ADD("dac", DAC, 0) |
| 425 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 436 | // MDRV_SOUND_ADD("dac", DAC, 0) |
| 437 | MDRV_SOUND_ADD("speaker", SPEAKER, 0) |
| 438 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75) |
| 426 | 439 | MDRV_SOUND_ADD("cassette", WAVE, 0) |
| 427 | | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 440 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30) |
| 428 | 441 | |
| 429 | 442 | MDRV_CASSETTE_ADD( "cassette", zx80_cassette_config ) |
| 430 | 443 | MACHINE_DRIVER_END |
| r4169 | r4170 | |
| 443 | 456 | static MACHINE_DRIVER_START( ts1000 ) |
| 444 | 457 | MDRV_IMPORT_FROM(zx81) |
| 445 | 458 | |
| 446 | | MDRV_SCREEN_MODIFY("main") |
| 447 | | MDRV_SCREEN_REFRESH_RATE(ZX81_NTSC_FRAMES_PER_SECOND) |
| 448 | | MDRV_SCREEN_SIZE(ZX81_PIXELS_PER_SCANLINE, ZX81_NTSC_SCANLINES) |
| 449 | | MDRV_SCREEN_VISIBLE_AREA(0, ZX81_PIXELS_PER_SCANLINE-1, 0, ZX81_NTSC_SCANLINES-1) |
| 450 | | |
| 451 | 459 | MDRV_PALETTE_INIT(ts1000) |
| 452 | 460 | MACHINE_DRIVER_END |
| 453 | 461 | |
| 454 | 462 | static MACHINE_DRIVER_START( pc8300 ) |
| 455 | | MDRV_IMPORT_FROM(ts1000) |
| 463 | MDRV_IMPORT_FROM(zx81) |
| 456 | 464 | |
| 457 | 465 | MDRV_CPU_MODIFY("main") |
| 466 | MDRV_CPU_IO_MAP(pc8300_io_map, 0) |
| 458 | 467 | |
| 459 | 468 | MDRV_MACHINE_RESET(pc8300) |
| 469 | |
| 470 | MDRV_SCREEN_MODIFY("main") |
| 471 | MDRV_SCREEN_REFRESH_RATE(ZX81_NTSC_FRAMES_PER_SECOND) |
| 472 | MDRV_SCREEN_SIZE(ZX81_PIXELS_PER_SCANLINE, ZX81_NTSC_SCANLINES) |
| 473 | MDRV_SCREEN_VISIBLE_AREA(0, ZX81_PIXELS_PER_SCANLINE-1, 0, ZX81_NTSC_SCANLINES-1) |
| 474 | |
| 460 | 475 | MDRV_GFXDECODE(pc8300) |
| 461 | 476 | MDRV_PALETTE_INIT(zx80) |
| 462 | 477 | MACHINE_DRIVER_END |
| 463 | 478 | |
| 464 | 479 | static MACHINE_DRIVER_START( pow3000 ) |
| 465 | | MDRV_IMPORT_FROM(ts1000) |
| 480 | MDRV_IMPORT_FROM(zx81) |
| 466 | 481 | |
| 467 | 482 | MDRV_CPU_MODIFY("main") |
| 468 | 483 | MDRV_CPU_IO_MAP(pow3000_io_map, 0) |
| 469 | 484 | |
| 470 | | MDRV_MACHINE_RESET(lambda) |
| 471 | | MDRV_GFXDECODE(pow3000) |
| 485 | MDRV_MACHINE_RESET(pow3000) |
| 486 | MDRV_GFXDECODE(pc8300) |
| 472 | 487 | MDRV_PALETTE_INIT(zx80) |
| 473 | 488 | MACHINE_DRIVER_END |
| 474 | 489 | |
| 475 | | static MACHINE_DRIVER_START( lambda ) |
| 476 | | MDRV_IMPORT_FROM(ts1000) |
| 477 | 490 | |
| 478 | | MDRV_CPU_MODIFY("main") |
| 479 | | MDRV_CPU_IO_MAP(pow3000_io_map, 0) |
| 480 | | |
| 481 | | MDRV_MACHINE_RESET(lambda) |
| 482 | | MDRV_GFXDECODE(pc8300) |
| 483 | | MDRV_PALETTE_INIT(zx80) |
| 484 | | MACHINE_DRIVER_END |
| 485 | | |
| 486 | 491 | /* ROMs */ |
| 487 | 492 | |
| 488 | 493 | ROM_START(zx80) |
| r4169 | r4170 | |
| 560 | 565 | COMP( 1980, zx80, 0, 0, zx80, zx80, zx, zx80, "Sinclair Research", "ZX-80", 0 ) |
| 561 | 566 | COMP( 1981, zx81, 0, 0, zx81, zx81, zx, zx81, "Sinclair Research", "ZX-81", 0 ) |
| 562 | 567 | COMP( 1982, ts1000, zx81, 0, ts1000, zx81, zx, zx81, "Timex Sinclair", "Timex Sinclair 1000", 0 ) |
| 563 | | COMP( 1984, pc8300, zx81, 0, pc8300, zx81, zx, pc8300, "Your Computer", "PC8300", 0 ) |
| 564 | | COMP( 1983, pow3000, zx81, 0, pow3000, pow3000, zx, pc8300, "Creon Enterprises", "Power 3000", GAME_NOT_WORKING ) |
| 565 | | COMP( 1982, lambda, zx81, 0, lambda, pow3000, zx, pc8300, "Lambda Electronics Ltd", "Lambda 8300", GAME_NOT_WORKING ) |
| 568 | COMP( 1984, pc8300, zx81, 0, pc8300, pc8300, zx, pc8300, "Your Computer", "PC8300", 0 ) |
| 569 | COMP( 1983, pow3000, zx81, 0, pow3000, pow3000, zx, pc8300, "Creon Enterprises", "Power 3000", 0 ) |
| 570 | COMP( 1982, lambda, zx81, 0, pow3000, pow3000, zx, pc8300, "Lambda Electronics Ltd", "Lambda 8300", 0 ) |