src/mess/drivers/crvision.c
| r4588 | r4589 | |
| 12 | 12 | |
| 13 | 13 | TODO: |
| 14 | 14 | |
| 15 | | - cassette left (data) / right (audio) separation |
| 16 | | - proper emulation of the monstrous keyboard |
| 15 | - BASIC v1,v2 numbers are invisible |
| 16 | - cassette left (data) / right (audio) track separation |
| 17 | - proper keyboard emulation, need keyboard schematics |
| 17 | 18 | - parallel I/O module |
| 18 | | - Chopper Rescue 18K cartridge not working |
| 19 | | - HAPMON cartridge not working |
| 20 | 19 | |
| 21 | 20 | */ |
| 22 | 21 | |
| r4588 | r4589 | |
| 51 | 50 | /* Input Ports */ |
| 52 | 51 | |
| 53 | 52 | static INPUT_PORTS_START( crvision ) |
| 54 | | |
| 55 | 53 | // Player 1 Joystick |
| 56 | 54 | |
| 57 | 55 | PORT_START("PA0-0") |
| r4588 | r4589 | |
| 89 | 87 | PORT_START("PA1-0") |
| 90 | 88 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_F) PORT_CHAR('F') |
| 91 | 89 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_G) PORT_CHAR('G') |
| 92 | | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("<-") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 90 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME("\xE2\x86\x90") PORT_CODE(KEYCODE_BACKSPACE) PORT_CHAR(8) |
| 93 | 91 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_A) PORT_CHAR('A') |
| 94 | 92 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_S) PORT_CHAR('S') |
| 95 | 93 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_CODE(KEYCODE_D) PORT_CHAR('D') |
| r4588 | r4589 | |
| 162 | 160 | |
| 163 | 161 | PORT_START("PA2-7") |
| 164 | 162 | PORT_BIT( 0x7f, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 165 | | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P2 Button 2 / ->") PORT_CODE(KEYCODE_TAB) PORT_CHAR(9) PORT_PLAYER(2) |
| 163 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("P2 Button 2 / \xE2\x86\x92") PORT_CODE(KEYCODE_TAB) PORT_CHAR(9) PORT_PLAYER(2) |
| 166 | 164 | |
| 167 | 165 | // Player 2 Keyboard |
| 168 | 166 | |
| r4588 | r4589 | |
| 311 | 309 | |
| 312 | 310 | UINT8 data = 0x7f; |
| 313 | 311 | |
| 314 | | if (cassette_input(cassette_device_image(device->machine)) < +0.0) data |= 0x80; |
| 312 | if (cassette_input(cassette_device_image(device->machine)) > -0.1469) data |= 0x80; |
| 315 | 313 | |
| 316 | 314 | return data; |
| 317 | 315 | } |