src/mess/drivers/radio86.c
| r2919 | r2920 | |
| 27 | 27 | AM_RANGE( 0xf000, 0xffff ) AM_ROM // System ROM |
| 28 | 28 | ADDRESS_MAP_END |
| 29 | 29 | |
| 30 | static ADDRESS_MAP_START( rk7007_io , ADDRESS_SPACE_IO, 8) |
| 31 | ADDRESS_MAP_UNMAP_HIGH |
| 32 | AM_RANGE( 0x80, 0x83 ) AM_DEVREADWRITE(PPI8255, "ms7007", ppi8255_r, ppi8255_w) |
| 33 | ADDRESS_MAP_END |
| 34 | |
| 30 | 35 | static ADDRESS_MAP_START(radio86rom_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 31 | 36 | AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank |
| 32 | 37 | AM_RANGE( 0x1000, 0x7fff ) AM_RAM // RAM |
| r2919 | r2920 | |
| 62 | 67 | ADDRESS_MAP_END |
| 63 | 68 | |
| 64 | 69 | /* Input ports */ |
| 65 | | static INPUT_PORTS_START( radio86 ) |
| 70 | INPUT_PORTS_START( radio86 ) |
| 66 | 71 | PORT_START_TAG("LINE0") |
| 67 | 72 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME) |
| 68 | 73 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ins") PORT_CODE(KEYCODE_INSERT) |
| r2919 | r2920 | |
| 146 | 151 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) |
| 147 | 152 | INPUT_PORTS_END |
| 148 | 153 | |
| 154 | INPUT_PORTS_START( ms7007 ) |
| 155 | PORT_START_TAG("LINE0") |
| 156 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) |
| 157 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) |
| 158 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 6") PORT_CODE(KEYCODE_6_PAD) |
| 159 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ins") PORT_CODE(KEYCODE_INSERT) |
| 160 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("End") PORT_CODE(KEYCODE_END) |
| 161 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_SLASH) |
| 162 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) |
| 163 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_EQUALS) |
| 164 | PORT_START_TAG("LINE1") |
| 165 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) |
| 166 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) |
| 167 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 168 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 169 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 170 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 171 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 172 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 173 | PORT_START_TAG("LINE2") |
| 174 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE) |
| 175 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 176 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 177 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 178 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 179 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 180 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 181 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) |
| 182 | PORT_START_TAG("LINE3") |
| 183 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 184 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) |
| 185 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) |
| 186 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 187 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) |
| 188 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) |
| 189 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) |
| 190 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) |
| 191 | PORT_START_TAG("LINE4") |
| 192 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| 193 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("@") PORT_CODE(KEYCODE_TILDE) |
| 194 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 195 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 196 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 197 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) |
| 198 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) |
| 199 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) |
| 200 | PORT_START_TAG("LINE5") |
| 201 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) |
| 202 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_COMMA) |
| 203 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE) |
| 204 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) |
| 205 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 206 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 207 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) |
| 208 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) |
| 209 | PORT_START_TAG("LINE6") |
| 210 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH) |
| 211 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) |
| 212 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 4") PORT_CODE(KEYCODE_4_PAD) |
| 213 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num +") PORT_CODE(KEYCODE_PLUS_PAD) |
| 214 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Back") PORT_CODE(KEYCODE_BACKSPACE) |
| 215 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN) |
| 216 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(">") PORT_CODE(KEYCODE_STOP) |
| 217 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT) |
| 218 | PORT_START_TAG("LINE7") |
| 219 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) |
| 220 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) |
| 221 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 5") PORT_CODE(KEYCODE_5_PAD) |
| 222 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) |
| 223 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME) |
| 224 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP) |
| 225 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num /") PORT_CODE(KEYCODE_SLASH_PAD) |
| 226 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) |
| 227 | PORT_START_TAG("LINE8") |
| 228 | PORT_BIT(0xFF, IP_ACTIVE_LOW, IPT_UNUSED) |
| 229 | PORT_START_TAG("CLINE0") |
| 230 | PORT_BIT(0x1F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 231 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 9") PORT_CODE(KEYCODE_9_PAD) |
| 232 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num Enter") PORT_CODE(KEYCODE_ENTER_PAD) |
| 233 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 3") PORT_CODE(KEYCODE_3_PAD) |
| 234 | PORT_START_TAG("CLINE1") |
| 235 | PORT_BIT(0x1F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 236 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num *") PORT_CODE(KEYCODE_ASTERISK) |
| 237 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) |
| 238 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num +") PORT_CODE(KEYCODE_PLUS_PAD) |
| 239 | PORT_START_TAG("CLINE2") |
| 240 | PORT_BIT(0x1F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 241 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num -") PORT_CODE(KEYCODE_MINUS_PAD) |
| 242 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) |
| 243 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) |
| 244 | PORT_START_TAG("CLINE3") |
| 245 | PORT_BIT(0x7F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 246 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) |
| 247 | PORT_START_TAG("CLINE4") |
| 248 | PORT_BIT(0x7F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 249 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) |
| 250 | PORT_START_TAG("CLINE5") |
| 251 | PORT_BIT(0x1F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 252 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) |
| 253 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) |
| 254 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) |
| 255 | PORT_START_TAG("CLINE6") |
| 256 | PORT_BIT(0x1F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 257 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 7") PORT_CODE(KEYCODE_7_PAD) |
| 258 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 0") PORT_CODE(KEYCODE_0_PAD) |
| 259 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 1") PORT_CODE(KEYCODE_1_PAD) |
| 260 | PORT_START_TAG("CLINE7") |
| 261 | PORT_BIT(0x1F, IP_ACTIVE_LOW, IPT_UNUSED) |
| 262 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 8") PORT_CODE(KEYCODE_8_PAD) |
| 263 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num .") PORT_CODE(KEYCODE_DEL_PAD) |
| 264 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 2") PORT_CODE(KEYCODE_2_PAD) |
| 265 | INPUT_PORTS_END |
| 266 | |
| 149 | 267 | /* Machine driver */ |
| 150 | 268 | static MACHINE_DRIVER_START( radio86 ) |
| 151 | 269 | /* basic machine hardware */ |
| r2919 | r2920 | |
| 206 | 324 | MDRV_DEVICE_CONFIG( radio86_ppi8255_interface_2 ) |
| 207 | 325 | MACHINE_DRIVER_END |
| 208 | 326 | |
| 327 | static MACHINE_DRIVER_START( rk7007 ) |
| 328 | /* basic machine hardware */ |
| 329 | MDRV_IMPORT_FROM(radio86) |
| 330 | MDRV_CPU_MODIFY("main") |
| 331 | MDRV_CPU_IO_MAP(rk7007_io, 0) |
| 332 | |
| 333 | MDRV_DEVICE_ADD( "ms7007", PPI8255 ) |
| 334 | MDRV_DEVICE_CONFIG( rk7007_ppi8255_interface ) |
| 335 | MACHINE_DRIVER_END |
| 336 | |
| 337 | static MACHINE_DRIVER_START( rk700716 ) |
| 338 | /* basic machine hardware */ |
| 339 | MDRV_IMPORT_FROM(radio16) |
| 340 | MDRV_CPU_MODIFY("main") |
| 341 | MDRV_CPU_IO_MAP(rk7007_io, 0) |
| 342 | |
| 343 | MDRV_DEVICE_ADD( "ms7007", PPI8255 ) |
| 344 | MDRV_DEVICE_CONFIG( rk7007_ppi8255_interface ) |
| 345 | MACHINE_DRIVER_END |
| 346 | |
| 209 | 347 | static void radio86_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 210 | 348 | { |
| 211 | 349 | /* cassette */ |
| r2919 | r2920 | |
| 270 | 408 | ROM_LOAD ("radio86.fnt", 0x0000, 0x0400, CRC(7666bd5e) SHA1(8652787603bee9b4da204745e3b2aa07a4783dfc)) |
| 271 | 409 | ROM_END |
| 272 | 410 | |
| 411 | ROM_START( rk7007 ) |
| 412 | ROM_REGION( 0x10000, REGION_CPU1, ROMREGION_ERASEFF ) |
| 413 | ROM_LOAD( "ms7007.rom", 0xf800, 0x0800, CRC(002811DC)) |
| 414 | ROM_COPY( REGION_CPU1, 0xf800, 0xf000, 0x0800 ) |
| 415 | ROM_REGION(0x0800, REGION_GFX1,0) |
| 416 | ROM_LOAD ("radio86.fnt", 0x0000, 0x0400, CRC(7666bd5e) SHA1(8652787603bee9b4da204745e3b2aa07a4783dfc)) |
| 417 | ROM_END |
| 418 | |
| 419 | ROM_START( rk700716 ) |
| 420 | ROM_REGION( 0x10000, REGION_CPU1, ROMREGION_ERASEFF ) |
| 421 | ROM_LOAD( "ms7007.16k", 0xf800, 0x0800, CRC(5268D7B6)) |
| 422 | ROM_COPY( REGION_CPU1, 0xf800, 0xf000, 0x0800 ) |
| 423 | ROM_REGION(0x0800, REGION_GFX1,0) |
| 424 | ROM_LOAD ("radio86.fnt", 0x0000, 0x0400, CRC(7666bd5e) SHA1(8652787603bee9b4da204745e3b2aa07a4783dfc)) |
| 425 | ROM_END |
| 426 | |
| 273 | 427 | static SYSTEM_CONFIG_START(radio86) |
| 274 | 428 | CONFIG_DEVICE(radio86_cassette_getinfo); |
| 275 | 429 | SYSTEM_CONFIG_END |
| r2919 | r2920 | |
| 283 | 437 | COMP( 1986, radiorom,radio86, 0, radiorom, radio86,radio86, radio86, "", "Radio-86RK (ROM-Disk)", 0) |
| 284 | 438 | COMP( 1986, radioram, radio86, 0, radioram, radio86,radioram, radio86, "", "Radio-86RK (ROM/RAM Disk)", 0) |
| 285 | 439 | COMP( 1986, spektr01,radio86, 0, radio86, radio86,radio86, radio86, "", "Spektr-001", 0) |
| 286 | | |
| 440 | COMP( 1986, rk7007, radio86, 0, rk7007, ms7007,radio86, radio86, "", "Radio-86RK (MS7007)", 0) |
| 441 | COMP( 1986, rk700716, radio86, 0, rk700716, ms7007,radio86, radio86, "", "Radio-86RK (MS7007 16K RAM)", 0) |
src/mess/drivers/orion.c
| r2919 | r2920 | |
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "cpu/i8085/i8085.h" |
| 13 | 13 | #include "machine/8255ppi.h" |
| 14 | | #include "includes/orion.h" |
| 15 | 14 | #include "machine/mc146818.h" |
| 16 | 15 | #include "devices/basicdsk.h" |
| 17 | 16 | #include "devices/cassette.h" |
| r2919 | r2920 | |
| 19 | 18 | #include "formats/rk_cas.h" |
| 20 | 19 | #include "sound/ay8910.h" |
| 21 | 20 | #include "sound/speaker.h" |
| 21 | #include "includes/orion.h" |
| 22 | #include "includes/radio86.h" |
| 22 | 23 | |
| 23 | 24 | /* Address maps */ |
| 24 | 25 | |
| r2919 | r2920 | |
| 75 | 76 | ADDRESS_MAP_END |
| 76 | 77 | |
| 77 | 78 | /* Input ports */ |
| 78 | | static INPUT_PORTS_START( orion128 ) |
| 79 | | PORT_START_TAG("LINE0") |
| 80 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME) |
| 81 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ins") PORT_CODE(KEYCODE_INSERT) |
| 82 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) |
| 83 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 84 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 85 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 86 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 87 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 88 | | PORT_START_TAG("LINE1") |
| 89 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) |
| 90 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("End") PORT_CODE(KEYCODE_END) |
| 91 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) |
| 92 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Back") PORT_CODE(KEYCODE_BACKSPACE) |
| 93 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) |
| 94 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP) |
| 95 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT) |
| 96 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN) |
| 97 | | PORT_START_TAG("LINE2") |
| 98 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) |
| 99 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 100 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 101 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 102 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 103 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 104 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 105 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) |
| 106 | | PORT_START_TAG("LINE3") |
| 107 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) |
| 108 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) |
| 109 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_EQUALS) |
| 110 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("+") PORT_CODE(KEYCODE_COLON) |
| 111 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_COMMA) |
| 112 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) |
| 113 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(">") PORT_CODE(KEYCODE_STOP) |
| 114 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_SLASH) |
| 115 | | PORT_START_TAG("LINE4") |
| 116 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("~") PORT_CODE(KEYCODE_TILDE) |
| 117 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 118 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| 119 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) |
| 120 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) |
| 121 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) |
| 122 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) |
| 123 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) |
| 124 | | PORT_START_TAG("LINE5") |
| 125 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) |
| 126 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) |
| 127 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) |
| 128 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) |
| 129 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 130 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 131 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) |
| 132 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) |
| 133 | | PORT_START_TAG("LINE6") |
| 134 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) |
| 135 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) |
| 136 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) |
| 137 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) |
| 138 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 139 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 140 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) |
| 141 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 142 | | PORT_START_TAG("LINE7") |
| 143 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) |
| 144 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 145 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) |
| 146 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE) |
| 147 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH) |
| 148 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 149 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE) |
| 150 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) |
| 151 | | PORT_START_TAG("LINE8") |
| 152 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 153 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 154 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 155 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNUSED) |
| 156 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED) |
| 157 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) |
| 158 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) |
| 159 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) |
| 160 | | INPUT_PORTS_END |
| 161 | | static INPUT_PORTS_START( ms7007 ) |
| 162 | | PORT_START_TAG("LINE0") |
| 163 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) |
| 164 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) |
| 165 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 6") PORT_CODE(KEYCODE_6_PAD) |
| 166 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ins") PORT_CODE(KEYCODE_INSERT) |
| 167 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("End") PORT_CODE(KEYCODE_END) |
| 168 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_SLASH) |
| 169 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) |
| 170 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_EQUALS) |
| 171 | | PORT_START_TAG("LINE1") |
| 172 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) |
| 173 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) |
| 174 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 175 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 176 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 177 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 178 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 179 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 180 | | PORT_START_TAG("LINE2") |
| 181 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE) |
| 182 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 183 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 184 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 185 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 186 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 187 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 188 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) |
| 189 | | PORT_START_TAG("LINE3") |
| 190 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 191 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) |
| 192 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) |
| 193 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 194 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) |
| 195 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) |
| 196 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) |
| 197 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) |
| 198 | | PORT_START_TAG("LINE4") |
| 199 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| 200 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("@") PORT_CODE(KEYCODE_TILDE) |
| 201 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 202 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 203 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 204 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) |
| 205 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) |
| 206 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) |
| 207 | | PORT_START_TAG("LINE5") |
| 208 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) |
| 209 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_COMMA) |
| 210 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE) |
| 211 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) |
| 212 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 213 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 214 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) |
| 215 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) |
| 216 | | PORT_START_TAG("LINE6") |
| 217 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH) |
| 218 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) |
| 219 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 4") PORT_CODE(KEYCODE_4_PAD) |
| 220 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num +") PORT_CODE(KEYCODE_PLUS_PAD) |
| 221 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Back") PORT_CODE(KEYCODE_BACKSPACE) |
| 222 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN) |
| 223 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(">") PORT_CODE(KEYCODE_STOP) |
| 224 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT) |
| 225 | | PORT_START_TAG("LINE7") |
| 226 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) |
| 227 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) |
| 228 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 5") PORT_CODE(KEYCODE_5_PAD) |
| 229 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6) |
| 230 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME) |
| 231 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP) |
| 232 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num /") PORT_CODE(KEYCODE_SLASH_PAD) |
| 233 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) |
| 234 | | PORT_START_TAG("LINE8") |
| 235 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 236 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 237 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 238 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNUSED) |
| 239 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED) |
| 240 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) |
| 241 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) PORT_CODE(KEYCODE_RCONTROL) |
| 242 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT) |
| 243 | | INPUT_PORTS_END |
| 79 | INPUT_PORTS_EXTERN( radio86 ); |
| 80 | INPUT_PORTS_EXTERN( ms7007 ); |
| 244 | 81 | |
| 245 | 82 | /* Machine driver */ |
| 246 | 83 | static MACHINE_DRIVER_START( orion128 ) |
| 247 | | MDRV_CPU_ADD(8080, 2000000) |
| 84 | MDRV_CPU_ADD_TAG("main", 8080, 2000000) |
| 248 | 85 | MDRV_CPU_PROGRAM_MAP(orion128_mem, 0) |
| 249 | 86 | MDRV_CPU_IO_MAP(orion128_io, 0) |
| 250 | 87 | |
| r2919 | r2920 | |
| 255 | 92 | MDRV_DEVICE_CONFIG( orion128_ppi8255_interface_1 ) |
| 256 | 93 | |
| 257 | 94 | MDRV_DEVICE_ADD( "ppi8255_2", PPI8255 ) |
| 258 | | MDRV_DEVICE_CONFIG( orion128_ppi8255_interface_2 ) |
| 95 | MDRV_DEVICE_CONFIG( radio86_ppi8255_interface_1 ) |
| 259 | 96 | |
| 260 | 97 | /* video hardware */ |
| 261 | 98 | MDRV_SCREEN_ADD("main", RASTER) |
| r2919 | r2920 | |
| 277 | 114 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
| 278 | 115 | MACHINE_DRIVER_END |
| 279 | 116 | |
| 117 | static MACHINE_DRIVER_START( orion128ms ) |
| 118 | MDRV_IMPORT_FROM(orion128) |
| 119 | |
| 120 | MDRV_DEVICE_REMOVE( "ppi8255_2", PPI8255 ) |
| 121 | MDRV_DEVICE_ADD( "ppi8255_2", PPI8255 ) |
| 122 | MDRV_DEVICE_CONFIG( rk7007_ppi8255_interface ) |
| 123 | MACHINE_DRIVER_END |
| 124 | |
| 280 | 125 | static const struct AY8910interface orionz80_ay_interface = |
| 281 | 126 | { |
| 282 | 127 | AY8910_LEGACY_OUTPUT, |
| r2919 | r2920 | |
| 297 | 142 | MDRV_DEVICE_CONFIG( orion128_ppi8255_interface_1 ) |
| 298 | 143 | |
| 299 | 144 | MDRV_DEVICE_ADD( "ppi8255_2", PPI8255 ) |
| 300 | | MDRV_DEVICE_CONFIG( orion128_ppi8255_interface_2 ) |
| 145 | MDRV_DEVICE_CONFIG( radio86_ppi8255_interface_1 ) |
| 301 | 146 | |
| 302 | 147 | /* video hardware */ |
| 303 | 148 | MDRV_SCREEN_ADD("main", RASTER) |
| r2919 | r2920 | |
| 325 | 170 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 326 | 171 | MACHINE_DRIVER_END |
| 327 | 172 | |
| 173 | static MACHINE_DRIVER_START( orionz80ms ) |
| 174 | MDRV_IMPORT_FROM(orionz80) |
| 175 | |
| 176 | MDRV_DEVICE_REMOVE( "ppi8255_2", PPI8255 ) |
| 177 | MDRV_DEVICE_ADD( "ppi8255_2", PPI8255 ) |
| 178 | MDRV_DEVICE_CONFIG( rk7007_ppi8255_interface ) |
| 179 | MACHINE_DRIVER_END |
| 180 | |
| 328 | 181 | static MACHINE_DRIVER_START( orionpro ) |
| 329 | 182 | MDRV_CPU_ADD(Z80, 5000000) |
| 330 | 183 | MDRV_CPU_PROGRAM_MAP(orionpro_mem, 0) |
| r2919 | r2920 | |
| 337 | 190 | MDRV_DEVICE_CONFIG( orion128_ppi8255_interface_1 ) |
| 338 | 191 | |
| 339 | 192 | MDRV_DEVICE_ADD( "ppi8255_2", PPI8255 ) |
| 340 | | MDRV_DEVICE_CONFIG( orion128_ppi8255_interface_2 ) |
| 193 | MDRV_DEVICE_CONFIG( radio86_ppi8255_interface_1 ) |
| 341 | 194 | |
| 342 | 195 | /* video hardware */ |
| 343 | 196 | MDRV_SCREEN_ADD("main", RASTER) |
| r2919 | r2920 | |
| 476 | 329 | /* Driver */ |
| 477 | 330 | |
| 478 | 331 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 479 | | COMP( 1990, orion128, 0, 0, orion128, orion128, orion128, orion128, "", "Orion 128", 0) |
| 480 | | COMP( 1990, orionms, orion128, 0, orion128, ms7007, orion128, orion128, "", "Orion 128 (MS7007)", 0) |
| 481 | | COMP( 1990, orionz80, orion128, 0, orionz80, orion128, orion128, orionz80, "", "Orion 128 + Z80 Card II", 0) |
| 482 | | COMP( 1990, orionzms, orion128, 0, orionz80, ms7007, orion128, orionz80, "", "Orion 128 + Z80 Card II (MS7007)", 0) |
| 483 | | COMP( 1994, orionpro, orion128, 0, orionpro, orion128, orion128, orionpro, "", "Orion Pro", 0) |
| 332 | COMP( 1990, orion128, 0, 0, orion128, radio86, orion128, orion128, "", "Orion 128", 0) |
| 333 | COMP( 1990, orionms, orion128, 0, orion128ms, ms7007, orion128, orion128, "", "Orion 128 (MS7007)", 0) |
| 334 | COMP( 1990, orionz80, orion128, 0, orionz80, radio86, orion128, orionz80, "", "Orion 128 + Z80 Card II", 0) |
| 335 | COMP( 1990, orionzms, orion128, 0, orionz80ms, ms7007, orion128, orionz80, "", "Orion 128 + Z80 Card II (MS7007)", 0) |
| 336 | COMP( 1994, orionpro, orion128, 0, orionpro, radio86, orion128, orionpro, "", "Orion Pro", 0) |