src/mess/drivers/bbcbc.c
| r4416 | r4417 | |
| 8 | 8 | Inputs |
| 9 | 9 | Find correct clock frequencies |
| 10 | 10 | |
| 11 | Inputs hooked up - 2009-03-14 - Robbbert |
| 12 | There are considerable debounce issues which can be solved by |
| 13 | slowing down the processor. 400khz works nicely. |
| 14 | |
| 11 | 15 | ***************************************************************************/ |
| 12 | 16 | #include "driver.h" |
| 13 | 17 | #include "cpu/z80/z80.h" |
| r4416 | r4417 | |
| 16 | 20 | #include "cpu/z80/z80daisy.h" |
| 17 | 21 | #include "devices/cartslot.h" |
| 18 | 22 | |
| 23 | |
| 19 | 24 | static ADDRESS_MAP_START( bbcbc_prg, ADDRESS_SPACE_PROGRAM, 8 ) |
| 20 | 25 | AM_RANGE(0x00000, 0x03fff) AM_ROM |
| 21 | 26 | AM_RANGE(0x04000, 0x0bfff) AM_ROM |
| 22 | | AM_RANGE(0x0e000, 0x0e7ff) AM_RAM |
| 27 | AM_RANGE(0x0e000, 0x0e02f) AM_RAM |
| 28 | AM_RANGE(0x0e030, 0x0e030) AM_READ_PORT("LINE01") |
| 29 | AM_RANGE(0x0e031, 0x0e031) AM_READ_PORT("LINE02") |
| 30 | AM_RANGE(0x0e032, 0x0e032) AM_READ_PORT("LINE03") |
| 31 | AM_RANGE(0x0e033, 0x0e033) AM_READ_PORT("LINE04") |
| 32 | AM_RANGE(0x0e034, 0x0e034) AM_READ_PORT("LINE05") |
| 33 | AM_RANGE(0x0e035, 0x0e035) AM_READ_PORT("LINE06") |
| 34 | AM_RANGE(0x0e036, 0x0e036) AM_READ_PORT("LINE07") |
| 35 | AM_RANGE(0x0e037, 0x0e037) AM_READ_PORT("LINE08") |
| 36 | AM_RANGE(0x0e038, 0x0e038) AM_READ_PORT("LINE09") |
| 37 | AM_RANGE(0x0e039, 0x0e039) AM_READ_PORT("LINE10") |
| 38 | AM_RANGE(0x0e03a, 0x0e03a) AM_READ_PORT("LINE11") |
| 39 | AM_RANGE(0x0e03b, 0x0e03b) AM_READ_PORT("LINE12") |
| 40 | AM_RANGE(0x0e03c, 0x0e7ff) AM_RAM |
| 23 | 41 | ADDRESS_MAP_END |
| 24 | 42 | |
| 25 | 43 | static ADDRESS_MAP_START( bbcbc_io, ADDRESS_SPACE_IO, 8 ) |
| r4416 | r4417 | |
| 29 | 47 | AM_RANGE(0x81, 0x81) AM_READWRITE(TMS9928A_register_r, TMS9928A_register_w) |
| 30 | 48 | ADDRESS_MAP_END |
| 31 | 49 | |
| 50 | static INPUT_PORTS_START( bbcbc ) |
| 51 | PORT_START("LINE01") |
| 52 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Pass") PORT_CODE(KEYCODE_W) PORT_IMPULSE(1) |
| 53 | |
| 54 | PORT_START("LINE02") |
| 55 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Clubs") PORT_CODE(KEYCODE_G) PORT_IMPULSE(1) |
| 56 | |
| 57 | PORT_START("LINE03") |
| 58 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Spades") PORT_CODE(KEYCODE_D) PORT_IMPULSE(1) |
| 59 | |
| 60 | PORT_START("LINE04") |
| 61 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Rdbl") PORT_CODE(KEYCODE_T) PORT_IMPULSE(1) |
| 62 | |
| 63 | PORT_START("LINE05") |
| 64 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("NT") PORT_CODE(KEYCODE_E) PORT_IMPULSE(1) |
| 65 | |
| 66 | PORT_START("LINE06") |
| 67 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Hearts, Up") PORT_CODE(KEYCODE_S) PORT_IMPULSE(1) |
| 68 | |
| 69 | PORT_START("LINE07") |
| 70 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Play, Yes") PORT_CODE(KEYCODE_X) PORT_IMPULSE(1) |
| 71 | |
| 72 | PORT_START("LINE08") |
| 73 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Back") PORT_CODE(KEYCODE_A) PORT_IMPULSE(1) |
| 74 | |
| 75 | PORT_START("LINE09") |
| 76 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Dbl") PORT_CODE(KEYCODE_R) PORT_IMPULSE(1) |
| 77 | |
| 78 | PORT_START("LINE10") |
| 79 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Diamonds, Down") PORT_CODE(KEYCODE_F) PORT_IMPULSE(1) |
| 80 | |
| 81 | PORT_START("LINE11") |
| 82 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Start") PORT_CODE(KEYCODE_Q) PORT_IMPULSE(1) |
| 83 | |
| 84 | PORT_START("LINE12") |
| 85 | PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Play, No") PORT_CODE(KEYCODE_B) PORT_IMPULSE(1) |
| 86 | INPUT_PORTS_END |
| 87 | |
| 32 | 88 | static void tms_interrupt(running_machine *machine, int dummy) |
| 33 | 89 | { |
| 34 | 90 | cpu_set_input_line(machine->cpu[0], 0, HOLD_LINE); |
| r4416 | r4417 | |
| 109 | 165 | ***************************************************************************/ |
| 110 | 166 | |
| 111 | 167 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 112 | | CONS(1985, bbcbc, 0, 0, bbcbc, 0, 0, 0, "BBC", "Bridge Companion", GAME_NOT_WORKING ) |
| 168 | CONS(1985, bbcbc, 0, 0, bbcbc, bbcbc, 0, 0, "BBC", "Bridge Companion", GAME_NOT_WORKING ) |
| 113 | 169 | |