src/mess/drivers/pc8801.c
| r6258 | r6259 | |
| 138 | 138 | AM_RANGE(0x0f, 0x0f) AM_READ_PORT("KEY15") |
| 139 | 139 | AM_RANGE(0x10, 0x10) AM_WRITE(pc88_rtc_w) |
| 140 | 140 | // AM_RANGE(0x20, 0x21) AM_NOP /* RS-232C and cassette (not yet) */ |
| 141 | | AM_RANGE(0x30, 0x30) AM_READWRITE(pc88sr_inport_30, pc88sr_outport_30) /* DIP-SW1 */ |
| 141 | AM_RANGE(0x30, 0x30) AM_READ_PORT("DSW1") AM_WRITE(pc88sr_outport_30) |
| 142 | 142 | AM_RANGE(0x31, 0x31) AM_READWRITE(pc88sr_inport_31, pc88sr_outport_31) /* DIP-SW2 */ |
| 143 | 143 | AM_RANGE(0x32, 0x32) AM_READWRITE(pc88sr_inport_32, pc88sr_outport_32) |
| 144 | 144 | AM_RANGE(0x34, 0x35) AM_WRITE(pc88sr_alu) |
| r6258 | r6259 | |
| 222 | 222 | - "Help" is mapped to 'F8' |
| 223 | 223 | */ |
| 224 | 224 | |
| 225 | | static INPUT_PORTS_START( pc88sr ) |
| 225 | static INPUT_PORTS_START( pc8001 ) |
| 226 | 226 | PORT_START("KEY0") |
| 227 | 227 | PORT_BIT (0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_0_PAD) PORT_CHAR(UCHAR_MAMEKEY(0_PAD)) |
| 228 | 228 | PORT_BIT (0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_1_PAD) PORT_CHAR(UCHAR_MAMEKEY(1_PAD)) |
| r6258 | r6259 | |
| 351 | 351 | PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 352 | 352 | |
| 353 | 353 | PORT_START("DSW1") |
| 354 | | PORT_DIPNAME( 0x01, 0x01, "Terminal mode" ) |
| 355 | | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 354 | PORT_DIPNAME( 0x01, 0x00, "BASIC" ) |
| 355 | PORT_DIPSETTING( 0x01, "N88-BASIC" ) |
| 356 | PORT_DIPSETTING( 0x00, "N-BASIC" ) |
| 357 | PORT_DIPNAME( 0x02, 0x02, "Terminal mode" ) |
| 358 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 356 | 359 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 357 | | PORT_DIPNAME( 0x02, 0x00, "Text width" ) |
| 358 | | PORT_DIPSETTING( 0x02, "40 chars/line" ) |
| 360 | PORT_DIPNAME( 0x04, 0x00, "Text width" ) |
| 361 | PORT_DIPSETTING( 0x04, "40 chars/line" ) |
| 359 | 362 | PORT_DIPSETTING( 0x00, "80 chars/line" ) |
| 360 | | PORT_DIPNAME( 0x04, 0x00, "Text height" ) |
| 361 | | PORT_DIPSETTING( 0x04, "20 lines/screen" ) |
| 363 | PORT_DIPNAME( 0x08, 0x00, "Text height" ) |
| 364 | PORT_DIPSETTING( 0x08, "20 lines/screen" ) |
| 362 | 365 | PORT_DIPSETTING( 0x00, "25 lines/screen" ) |
| 363 | | PORT_DIPNAME( 0x08, 0x08, "Enable S parameter" ) |
| 364 | | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 365 | | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 366 | | PORT_DIPNAME( 0x10, 0x00, "Enable DEL code" ) |
| 366 | PORT_DIPNAME( 0x10, 0x10, "Enable S parameter" ) |
| 367 | 367 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 368 | 368 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 369 | | PORT_DIPNAME( 0x20, 0x20, "Memory wait" ) |
| 369 | PORT_DIPNAME( 0x20, 0x00, "Enable DEL code" ) |
| 370 | 370 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 371 | 371 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 372 | | PORT_DIPNAME( 0x40, 0x40, "Disable CMD SING" ) |
| 372 | PORT_DIPNAME( 0x40, 0x40, "Memory wait" ) |
| 373 | 373 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 374 | 374 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 375 | PORT_DIPNAME( 0x80, 0x80, "Disable CMD SING" ) |
| 376 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 377 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 375 | 378 | |
| 376 | 379 | PORT_START("DSW2") |
| 377 | 380 | PORT_DIPNAME( 0x01, 0x01, "Parity generate" ) |
| r6258 | r6259 | |
| 439 | 442 | PORT_CONFSETTING( 0x0d, "4.1M (PIO-8234H-2M x 2 + PC-8801-02N x 1)" ) |
| 440 | 443 | INPUT_PORTS_END |
| 441 | 444 | |
| 445 | static INPUT_PORTS_START( pc88sr ) |
| 446 | PORT_INCLUDE( pc8001 ) |
| 447 | |
| 448 | PORT_MODIFY("DSW1") |
| 449 | PORT_DIPNAME( 0x01, 0x01, "BASIC" ) |
| 450 | PORT_DIPSETTING( 0x01, "N88-BASIC" ) |
| 451 | PORT_DIPSETTING( 0x00, "N-BASIC" ) |
| 452 | INPUT_PORTS_END |
| 453 | |
| 442 | 454 | /* Graphics Layouts */ |
| 443 | 455 | |
| 444 | 456 | static const gfx_layout char_layout_40L_h = |
| r6258 | r6259 | |
| 946 | 958 | /* System Drivers */ |
| 947 | 959 | |
| 948 | 960 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 949 | | COMP( 1979, pc8001, 0, 0, pc88srl, pc88sr, 0, 0, "NEC", "PC-8001", GAME_NOT_WORKING ) |
| 950 | | COMP( 1983, pc8001m2, 0, 0, pc88srl, pc88sr, 0, 0, "NEC", "PC-8001 Mk2", GAME_NOT_WORKING ) // not sure about this dump |
| 961 | COMP( 1979, pc8001, 0, 0, pc88srl, pc8001, 0, 0, "NEC", "PC-8001", GAME_NOT_WORKING ) |
| 962 | COMP( 1983, pc8001m2, 0, 0, pc88srl, pc8001, 0, 0, "NEC", "PC-8001 Mk2", GAME_NOT_WORKING ) // not sure about this dump |
| 951 | 963 | |
| 952 | 964 | COMP( 1981, pc8801, 0, 0, pc88srl, pc88sr, 0, 0, "NEC", "PC-8801", GAME_NOT_WORKING ) |
| 953 | 965 | COMP( 1983, pc88m2, pc8801, 0, pc88srl, pc88sr, 0, 0, "NEC", "PC-8801 MkII", GAME_NOT_WORKING ) // not sure about this dump |