src/mess/drivers/amstrad.c
| r3314 | r3315 | |
| 2307 | 2307 | static INPUT_PORTS_START( amstrad_keyboard ) |
| 2308 | 2308 | /* keyboard row 0 */ |
| 2309 | 2309 | PORT_START("keyboard_row_0") |
| 2310 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x87\xA7") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 2311 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x87\xA8") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| 2312 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x87\xA9") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 2310 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x91") PORT_CODE(KEYCODE_UP) PORT_CHAR(UCHAR_MAMEKEY(UP)) |
| 2311 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x92") PORT_CODE(KEYCODE_RIGHT) PORT_CHAR(UCHAR_MAMEKEY(RIGHT)) |
| 2312 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x93") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) |
| 2313 | 2313 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad 9") PORT_CODE(KEYCODE_9_PAD) PORT_CHAR(UCHAR_MAMEKEY(9_PAD)) |
| 2314 | 2314 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad 6") PORT_CODE(KEYCODE_6_PAD) PORT_CHAR(UCHAR_MAMEKEY(6_PAD)) |
| 2315 | 2315 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad 3") PORT_CODE(KEYCODE_3_PAD) PORT_CHAR(UCHAR_MAMEKEY(3_PAD)) |
| r3314 | r3315 | |
| 2318 | 2318 | |
| 2319 | 2319 | /* keyboard line 1 */ |
| 2320 | 2320 | PORT_START("keyboard_row_1") |
| 2321 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x87\xA6") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 2321 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xE2\x86\x90") PORT_CODE(KEYCODE_LEFT) PORT_CHAR(UCHAR_MAMEKEY(LEFT)) |
| 2322 | 2322 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Copy") PORT_CODE(KEYCODE_END) PORT_CHAR(UCHAR_MAMEKEY(END)) |
| 2323 | 2323 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad 7") PORT_CODE(KEYCODE_7_PAD) PORT_CHAR(UCHAR_MAMEKEY(7_PAD)) |
| 2324 | 2324 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Keypad 8") PORT_CODE(KEYCODE_8_PAD) PORT_CHAR(UCHAR_MAMEKEY(8_PAD)) |
| r3314 | r3315 | |
| 2629 | 2629 | PORT_INCLUDE(crtc_links) |
| 2630 | 2630 | INPUT_PORTS_END |
| 2631 | 2631 | |
| 2632 | static INPUT_PORTS_START( cpc6128s ) |
| 2633 | PORT_INCLUDE(cpc6128) |
| 2634 | |
| 2635 | PORT_MODIFY("keyboard_row_2") |
| 2636 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xC3\x9C") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR(0x00DC) |
| 2637 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xC3\x89") PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR(0x00E9) |
| 2638 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_RCONTROL) PORT_CHAR('/') PORT_CHAR('?') |
| 2639 | |
| 2640 | PORT_MODIFY("keyboard_row_3") |
| 2641 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_EQUALS) PORT_CHAR('+') PORT_CHAR('*') |
| 2642 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_MINUS) PORT_CHAR('-') PORT_CHAR('=') |
| 2643 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xC3\x85") PORT_CODE(KEYCODE_OPENBRACE) PORT_CHAR(0x00C5) |
| 2644 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xC3\x84") PORT_CODE(KEYCODE_QUOTE) PORT_CHAR(0x00C4) |
| 2645 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\xC3\x96") PORT_CODE(KEYCODE_COLON) PORT_CHAR(0x00D6) |
| 2646 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_SLASH) PORT_CHAR('<') PORT_CHAR('>') |
| 2647 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_STOP) PORT_CHAR('.') PORT_CHAR(':') |
| 2648 | |
| 2649 | PORT_MODIFY("keyboard_row_4") |
| 2650 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_CODE(KEYCODE_COMMA) PORT_CHAR(',') PORT_CHAR(';') |
| 2651 | INPUT_PORTS_END |
| 2652 | |
| 2632 | 2653 | /* |
| 2633 | 2654 | * The BIOS of the KC Compact would be able to recognize the keypresses |
| 2634 | 2655 | * generated by F5-F9. Unfortunately these keys are not present on the |
| r3314 | r3315 | |
| 3060 | 3081 | ROM_END |
| 3061 | 3082 | |
| 3062 | 3083 | |
| 3084 | ROM_START( cpc6128s ) |
| 3085 | /* this defines the total memory size (128kb))- 64k ram, 16k OS, 16k BASIC, 16k DOS +16k*/ |
| 3086 | ROM_REGION(0x020000, "main", 0) |
| 3087 | |
| 3088 | /* load the os to offset 0x01000 from memory base */ |
| 3089 | ROM_LOAD("cpc6128s.rom", 0x10000, 0x8000, CRC(588b5540) SHA1(6765a91a42fed68a807325bf62a728e5ac5d622f)) |
| 3090 | ROM_LOAD("cpcados.rom", 0x18000, 0x4000, CRC(1fe22ecd) SHA1(39102c8e9cb55fcc0b9b62098780ed4a3cb6a4bb)) |
| 3091 | |
| 3092 | /* optional Multiface hardware */ |
| 3093 | ROM_LOAD_OPTIONAL("multface.rom", 0x01c000, 0x2000, CRC(f36086de) SHA1(1431ec628d38f000715545dd2186b684c5fe5a6f)) |
| 3094 | ROM_END |
| 3095 | |
| 3096 | |
| 3063 | 3097 | ROM_START( cpc464 ) |
| 3064 | 3098 | /* this defines the total memory size - 64k ram, 16k OS, 16k BASIC, 16k DOS */ |
| 3065 | 3099 | ROM_REGION(0x01c000, "main", 0) |
| r3314 | r3315 | |
| 3214 | 3248 | COMP( 1985, cpc664, cpc464, 0, amstrad, cpc664, 0, cpc6128, "Amstrad plc", "Amstrad CPC664", 0 ) |
| 3215 | 3249 | COMP( 1985, cpc6128, cpc464, 0, amstrad, cpc6128, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128", 0 ) |
| 3216 | 3250 | COMP( 1985, cpc6128f, cpc464, 0, amstrad, cpc6128f, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128 (France, AZERTY Keyboard)", 0 ) |
| 3251 | COMP( 1985, cpc6128s, cpc464, 0, amstrad, cpc6128s, 0, cpc6128, "Amstrad plc", "Amstrad CPC6128 (Sweden/Finland)", 0 ) |
| 3217 | 3252 | COMP( 1990, cpc464p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC464+", 0 ) |
| 3218 | 3253 | COMP( 1990, cpc6128p, 0, 0, cpcplus, plus, 0, cpcplus, "Amstrad plc", "Amstrad CPC6128+", 0 ) |
| 3219 | 3254 | CONS( 1990, gx4000, 0, 0, gx4000, gx4000, 0, gx4000, "Amstrad plc", "Amstrad GX4000", 0 ) |