src/mess/drivers/tmc1800.c
| r2649 | r2650 | |
| 66 | 66 | |
| 67 | 67 | TODO: |
| 68 | 68 | |
| 69 | - tape input/output |
| 69 | 70 | - tmc2000: add missing keys |
| 70 | 71 | - tmc2000: TOOL-2000 rom banking |
| 71 | 72 | |
| r2649 | r2650 | |
| 86 | 87 | |
| 87 | 88 | static MACHINE_RESET( tmc1800 ); |
| 88 | 89 | static MACHINE_RESET( tmc2000 ); |
| 90 | static MACHINE_RESET( oscnano ); |
| 89 | 91 | |
| 90 | 92 | static const device_config *cassette_device_image(void) |
| 91 | 93 | { |
| r2649 | r2650 | |
| 123 | 125 | state->keylatch = data & 0x3f; |
| 124 | 126 | } |
| 125 | 127 | |
| 128 | static WRITE8_HANDLER( oscnano_keylatch_w ) |
| 129 | { |
| 130 | /* |
| 131 | |
| 132 | bit description |
| 133 | |
| 134 | 0 X0 |
| 135 | 1 X1 |
| 136 | 2 X2 |
| 137 | 3 Y0 |
| 138 | 4 not connected |
| 139 | 5 not connected |
| 140 | 6 not connected |
| 141 | 7 not connected |
| 142 | |
| 143 | */ |
| 144 | |
| 145 | tmc2000_state *state = machine->driver_data; |
| 146 | |
| 147 | state->keylatch = data & 0x0f; |
| 148 | } |
| 149 | |
| 126 | 150 | static WRITE8_DEVICE_HANDLER( tmc2000_bankswitch_w ) |
| 127 | 151 | { |
| 128 | 152 | int bank = data & 0x01; |
| r2649 | r2650 | |
| 204 | 228 | |
| 205 | 229 | static ADDRESS_MAP_START( oscnano_io_map, ADDRESS_SPACE_IO, 8 ) |
| 206 | 230 | AM_RANGE(0x01, 0x01) AM_DEVREADWRITE(CDP1864, CDP1864_TAG, cdp1864_dispon_r, cdp1864_step_bgcolor_w) |
| 207 | | AM_RANGE(0x02, 0x02) AM_WRITE(tmc1800_keylatch_w) |
| 231 | AM_RANGE(0x02, 0x02) AM_WRITE(oscnano_keylatch_w) |
| 208 | 232 | AM_RANGE(0x04, 0x04) AM_DEVREADWRITE(CDP1864, CDP1864_TAG, cdp1864_dispoff_r, oscnano_bankswitch_w) |
| 209 | 233 | ADDRESS_MAP_END |
| 210 | 234 | |
| r2649 | r2650 | |
| 495 | 519 | |
| 496 | 520 | static CDP1802_MODE_READ( oscnano_mode_r ) |
| 497 | 521 | { |
| 522 | tmc2000_state *state = machine->driver_data; |
| 523 | |
| 498 | 524 | if (input_port_read(machine, "RUN") & 0x01) |
| 499 | 525 | { |
| 526 | if (state->reset) |
| 527 | { |
| 528 | MACHINE_RESET_CALL(oscnano); |
| 529 | |
| 530 | state->reset = 0; |
| 531 | } |
| 532 | |
| 500 | 533 | return CDP1802_MODE_RUN; |
| 501 | 534 | } |
| 502 | 535 | else |
| 503 | 536 | { |
| 504 | | // enable ROM at 0x0000 |
| 537 | state->reset = 1; |
| 505 | 538 | |
| 506 | | memory_set_bank(1, 0); |
| 507 | | |
| 508 | 539 | return CDP1802_MODE_RESET; |
| 509 | 540 | } |
| 510 | 541 | } |
| r2649 | r2650 | |
| 825 | 856 | |
| 826 | 857 | ROM_START( oscnano ) |
| 827 | 858 | ROM_REGION( 0x10000, REGION_CPU1, 0 ) |
| 828 | | ROM_LOAD( "mmi6349.ic", 0x8000, 0x0200, NO_DUMP ) // equivalent to 82S141 |
| 859 | ROM_LOAD( "mmi6349.ic", 0x8000, 0x0200, BAD_DUMP CRC(1ec1b432) SHA1(ac41f5e38bcd4b80bd7a5b277a2c600899fd5fb8) ) // equivalent to 82S141 |
| 829 | 860 | ROM_END |
| 830 | 861 | |
| 831 | 862 | /* System Configuration */ |
| r2649 | r2650 | |
| 920 | 951 | COMP( 1977, tmc1800, 0, 0, tmc1800, tmc1800, tmc1800, tmc1800, "Telercas Oy", "Telmac 1800", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| 921 | 952 | COMP( 1977, osc1000b, tmc1800,0, osc1000b, tmc1800, tmc1800, tmc1800, "OSCOM Oy", "OSCOM 1000B", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| 922 | 953 | COMP( 1980, tmc2000, 0, 0, tmc2000, tmc2000, tmc1800, tmc2000, "Telercas Oy", "Telmac 2000", GAME_SUPPORTS_SAVE ) |
| 923 | | COMP( 1980, oscnano, tmc2000,0, oscnano, oscnano, tmc1800, oscnano, "OSCOM Oy", "OSCOM Nano", GAME_NOT_WORKING | GAME_SUPPORTS_SAVE ) |
| 954 | COMP( 1980, oscnano, tmc2000,0, oscnano, oscnano, tmc1800, oscnano, "OSCOM Oy", "OSCOM Nano", GAME_SUPPORTS_SAVE ) |