src/mess/machine/orion.c
| r2306 | r2307 | |
| 18 | 18 | UINT8 orion_keyboard_line;
|
| 19 | 19 | UINT8 orion128_video_mode;
|
| 20 | 20 | UINT8 orion128_video_page;
|
| 21 | | UINT8 orion128_dispatcher;
|
| 22 | 21 | UINT8 orion128_memory_page;
|
| 23 | 22 | |
| 23 | UINT8 orionz80_memory_page;
|
| 24 | UINT8 orionz80_dispatcher;
|
| 25 | |
| 24 | 26 | READ8_HANDLER (orion_romdisk_porta_r )
|
| 25 | 27 | {
|
| 26 | 28 | UINT8 *romdisk = memory_region(REGION_CPU1) + 0x10000; |
| r2306 | r2307 | |
| 116 | 118 | |
| 117 | 119 | WRITE8_HANDLER ( orion128_video_page_w )
|
| 118 | 120 | {
|
| 121 | //logerror("orion128_video_page_w %02x\n",data);
|
| 119 | 122 | orion128_video_page = data & 3;
|
| 120 | 123 | }
|
| 121 | 124 | |
| 122 | | WRITE8_HANDLER ( orion128_dispatcher_w )
|
| 123 | | {
|
| 124 | | orion128_dispatcher = data;
|
| 125 | | }
|
| 126 | 125 | |
| 127 | 126 | WRITE8_HANDLER ( orion128_memory_page_w )
|
| 128 | 127 | { |
| 129 | | if (data >3) {
|
| 130 | | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0xefff, 0, 0, SMH_UNMAP);
|
| 131 | | return;
|
| 132 | | }
|
| 133 | 128 | if (data!=orion128_memory_page ) {
|
| 134 | | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0xefff, 0, 0, SMH_BANK1);
|
| 135 | 129 | memory_set_bankptr(1, mess_ram + (data & 3) * 0x10000);
|
| 136 | 130 | orion128_memory_page = (data & 3);
|
| 137 | 131 | }
|
| 138 | 132 | }
|
| 139 | 133 | |
| 140 | 134 | MACHINE_RESET ( orion128 ) |
| 141 | | {
|
| 142 | | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0xefff, 0, 0, SMH_UNMAP);
|
| 143 | | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0xf800); |
| 144 | |
|
| 135 | { |
| 145 | 136 | wd17xx_reset();
|
| 146 | 137 | ppi8255_init(&orion128_ppi8255_interface);
|
| 147 | 138 | orion_keyboard_line = 0;
|
| 148 | 139 | orion128_video_page = 0;
|
| 149 | 140 | orion128_video_mode = 0;
|
| 150 | 141 | orion128_memory_page = -1;
|
| 142 | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0xf800);
|
| 143 | memory_set_bankptr(2, mess_ram + 0xf000);
|
| 151 | 144 | }
|
| 152 | 145 | |
| 153 | 146 | |
| r2306 | r2307 | |
| 199 | 192 | }
|
| 200 | 193 | |
| 201 | 194 | WRITE8_HANDLER ( orion128_floppy_w )
|
| 202 | | {
|
| 195 | {
|
| 203 | 196 | switch(offset) {
|
| 204 | 197 | case 0x0 :
|
| 205 | 198 | case 0x10 : wd17xx_command_w(machine,0,data); break;
|
| r2306 | r2307 | |
| 214 | 207 | case 0x20 : orion_disk_control_w(machine, offset, data);break;
|
| 215 | 208 | }
|
| 216 | 209 | }
|
| 210 | |
| 211 | |
| 212 | DRIVER_INIT( orionz80 )
|
| 213 | {
|
| 214 | memset(mess_ram,0,512*1024);
|
| 215 | }
|
| 216 | |
| 217 | |
| 218 | MACHINE_START( orionz80 )
|
| 219 | {
|
| 220 | wd17xx_init(machine, WD_TYPE_1793, NULL , NULL);
|
| 221 | wd17xx_set_density (DEN_FM_HI);
|
| 222 | }
|
| 223 | |
| 224 | WRITE8_HANDLER ( orionz80_memory_page_w );
|
| 225 | WRITE8_HANDLER ( orionz80_dispatcher_w );
|
| 226 | |
| 227 | void orionz80_switch_bank(void)
|
| 228 | {
|
| 229 | UINT8 bank_select;
|
| 230 | UINT8 segment_select;
|
| 231 |
|
| 232 | bank_select = (orionz80_dispatcher & 0x0c) >> 2;
|
| 233 | segment_select = orionz80_dispatcher & 0x03;
|
| 234 |
|
| 235 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x3fff, 0, 0, SMH_BANK1);
|
| 236 | if ((orionz80_dispatcher & 0x80)==0) { // dispatcher on
|
| 237 | memory_set_bankptr(1, mess_ram + 0x10000 * bank_select + segment_select * 0x4000 ); |
| 238 | } else { // dispatcher off
|
| 239 | memory_set_bankptr(1, mess_ram + 0x10000 * orionz80_memory_page); |
| 240 | }
|
| 241 | |
| 242 | memory_set_bankptr(2, mess_ram + 0x4000 + 0x10000 * orionz80_memory_page); |
| 243 |
|
| 244 | if ((orionz80_dispatcher & 0x20) == 0) {
|
| 245 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf400, 0xf4ff, 0, 0, orion128_system_w);
|
| 246 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf500, 0xf5ff, 0, 0, orion128_romdisk_w);
|
| 247 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf700, 0xf7ff, 0, 0, orion128_floppy_w);
|
| 248 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf400, 0xf4ff, 0, 0, orion128_system_r);
|
| 249 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf500, 0xf5ff, 0, 0, orion128_romdisk_r);
|
| 250 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf700, 0xf7ff, 0, 0, orion128_floppy_r);
|
| 251 | |
| 252 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf800, 0xf8ff, 0, 0, orion128_video_mode_w);
|
| 253 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf900, 0xf9ff, 0, 0, orionz80_memory_page_w);
|
| 254 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xfa00, 0xfaff, 0, 0, orion128_video_page_w);
|
| 255 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xfb00, 0xfbff, 0, 0, orionz80_dispatcher_w);
|
| 256 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xfc00, 0xffff, 0, 0, SMH_UNMAP);
|
| 257 | |
| 258 | memory_set_bankptr(3, mess_ram + 0xf000); |
| 259 | memory_set_bankptr(5, memory_region(REGION_CPU1) + 0xf800); |
| 260 | |
| 261 | } else {
|
| 262 | /* if it is full memory access */
|
| 263 | memory_set_bankptr(3, mess_ram + 0xf000 + 0x10000 * orionz80_memory_page); |
| 264 | memory_set_bankptr(4, mess_ram + 0xf400 + 0x10000 * orionz80_memory_page); |
| 265 | memory_set_bankptr(5, mess_ram + 0xf800 + 0x10000 * orionz80_memory_page); |
| 266 | } |
| 267 | }
|
| 268 | |
| 269 | WRITE8_HANDLER ( orionz80_memory_page_w )
|
| 270 | {
|
| 271 | orionz80_memory_page = data;
|
| 272 | orionz80_switch_bank();
|
| 273 | }
|
| 274 | |
| 275 | WRITE8_HANDLER ( orionz80_dispatcher_w )
|
| 276 | {
|
| 277 | orionz80_dispatcher = data;
|
| 278 | orionz80_switch_bank();
|
| 279 | }
|
| 280 | |
| 281 | WRITE8_HANDLER ( orionz80_sound_w )
|
| 282 | {
|
| 283 | // logerror("orionz80_sound_w %02x\n",data);
|
| 284 | }
|
| 285 | |
| 286 | MACHINE_RESET ( orionz80 ) |
| 287 | {
|
| 288 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x3fff, 0, 0, SMH_UNMAP);
|
| 289 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0x4000, 0xefff, 0, 0, SMH_BANK2);
|
| 290 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf000, 0xf3ff, 0, 0, SMH_BANK3);
|
| 291 | |
| 292 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf400, 0xf4ff, 0, 0, orion128_system_w);
|
| 293 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf500, 0xf5ff, 0, 0, orion128_romdisk_w);
|
| 294 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf700, 0xf7ff, 0, 0, orion128_floppy_w);
|
| 295 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf400, 0xf4ff, 0, 0, orion128_system_r);
|
| 296 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf500, 0xf5ff, 0, 0, orion128_romdisk_r);
|
| 297 | memory_install_read8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf700, 0xf7ff, 0, 0, orion128_floppy_r);
|
| 298 |
|
| 299 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf800, 0xf8ff, 0, 0, orion128_video_mode_w);
|
| 300 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xf900, 0xf9ff, 0, 0, orionz80_memory_page_w);
|
| 301 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xfa00, 0xfaff, 0, 0, orion128_video_page_w);
|
| 302 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xfb00, 0xfbff, 0, 0, orionz80_dispatcher_w);
|
| 303 | memory_install_write8_handler(0, ADDRESS_SPACE_PROGRAM, 0xfc00, 0xffff, 0, 0, SMH_UNMAP);
|
| 304 |
|
| 305 |
|
| 306 | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0xf800); |
| 307 | memory_set_bankptr(2, mess_ram + 0x4000); |
| 308 | memory_set_bankptr(3, mess_ram + 0xf000); |
| 309 | memory_set_bankptr(5, memory_region(REGION_CPU1) + 0xf800); |
| 310 |
|
| 311 | wd17xx_reset();
|
| 312 | ppi8255_init(&orion128_ppi8255_interface);
|
| 313 | orion_keyboard_line = 0;
|
| 314 | orion128_video_page = 0;
|
| 315 | orion128_video_mode = 0;
|
| 316 | orionz80_memory_page = 0;
|
| 317 | orionz80_dispatcher = 0;
|
| 318 | }
|
| 319 | |
src/mess/drivers/orion.c
| r2306 | r2307 | |
| 13 | 13 | #include "devices/basicdsk.h"
|
| 14 | 14 | |
| 15 | 15 | /* Address maps */
|
| 16 | | static ADDRESS_MAP_START(orion128_mem, ADDRESS_SPACE_PROGRAM, 8)
|
| 17 | | ADDRESS_MAP_UNMAP_HIGH
|
| 18 | | AM_RANGE( 0x0000, 0xefff ) AM_READWRITE(SMH_BANK1, SMH_BANK1)
|
| 19 | | AM_RANGE( 0xf000, 0xf3ff ) AM_RAM
|
| 16 | static ADDRESS_MAP_START(orion128_mem, ADDRESS_SPACE_PROGRAM, 8) |
| 17 | AM_RANGE( 0x0000, 0xefff ) AM_RAMBANK(1)
|
| 18 | AM_RANGE( 0xf000, 0xf3ff ) AM_RAMBANK(2)
|
| 20 | 19 | AM_RANGE( 0xf400, 0xf4ff ) AM_READWRITE(orion128_system_r,orion128_system_w) // Keyboard and cassette
|
| 21 | 20 | AM_RANGE( 0xf500, 0xf5ff ) AM_READWRITE(orion128_romdisk_r,orion128_romdisk_w) |
| 22 | 21 | AM_RANGE( 0xf700, 0xf7ff ) AM_READWRITE(orion128_floppy_r,orion128_floppy_w) |
| r2306 | r2307 | |
| 24 | 23 | AM_RANGE( 0xf800, 0xf8ff ) AM_WRITE (orion128_video_mode_w)
|
| 25 | 24 | AM_RANGE( 0xf900, 0xf9ff ) AM_WRITE (orion128_memory_page_w)
|
| 26 | 25 | AM_RANGE( 0xfa00, 0xfaff ) AM_WRITE (orion128_video_page_w) |
| 27 | | AM_RANGE( 0xfb00, 0xfbff ) AM_WRITE (orion128_dispatcher_w)
|
| 28 | 26 | ADDRESS_MAP_END
|
| 29 | 27 | |
| 30 | | |
| 31 | 28 | static ADDRESS_MAP_START( orion128_io , ADDRESS_SPACE_IO, 8)
|
| 32 | 29 | ADDRESS_MAP_GLOBAL_MASK(0xff)
|
| 33 | 30 | ADDRESS_MAP_UNMAP_HIGH
|
| 34 | 31 | AM_RANGE( 0xf8, 0xf8) AM_WRITE ( orion128_video_mode_w )
|
| 35 | 32 | AM_RANGE( 0xf9, 0xf9) AM_WRITE ( orion128_memory_page_w )
|
| 36 | | AM_RANGE( 0xfa, 0xfa) AM_WRITE ( orion128_memory_page_w )
|
| 37 | | AM_RANGE( 0xfb, 0xfb) AM_WRITE ( orion128_dispatcher_w )
|
| 33 | AM_RANGE( 0xfa, 0xfa) AM_WRITE ( orion128_video_page_w )
|
| 38 | 34 | ADDRESS_MAP_END
|
| 39 | 35 | |
| 36 | |
| 37 | static ADDRESS_MAP_START(orionz80_mem, ADDRESS_SPACE_PROGRAM, 8)
|
| 38 | ADDRESS_MAP_UNMAP_HIGH
|
| 39 | AM_RANGE( 0x0000, 0x3fff ) AM_READWRITE(SMH_BANK1, SMH_BANK1)
|
| 40 | AM_RANGE( 0x4000, 0xefff ) AM_READWRITE(SMH_BANK2, SMH_BANK2)
|
| 41 | AM_RANGE( 0xf000, 0xf3ff ) AM_READWRITE(SMH_BANK3, SMH_BANK3)
|
| 42 | AM_RANGE( 0xf400, 0xf7ff ) AM_READWRITE(SMH_BANK4, SMH_BANK4)
|
| 43 | AM_RANGE( 0xf800, 0xffff ) AM_READWRITE(SMH_BANK5, SMH_BANK5)
|
| 44 | ADDRESS_MAP_END
|
| 45 | |
| 46 | |
| 47 | static ADDRESS_MAP_START( orionz80_io , ADDRESS_SPACE_IO, 8)
|
| 48 | ADDRESS_MAP_GLOBAL_MASK(0xff)
|
| 49 | ADDRESS_MAP_UNMAP_HIGH
|
| 50 | AM_RANGE( 0xf8, 0xf8) AM_WRITE ( orion128_video_mode_w )
|
| 51 | AM_RANGE( 0xf9, 0xf9) AM_WRITE ( orionz80_memory_page_w )
|
| 52 | AM_RANGE( 0xfa, 0xfa) AM_WRITE ( orion128_video_page_w )
|
| 53 | AM_RANGE( 0xfb, 0xfb) AM_WRITE ( orionz80_dispatcher_w )
|
| 54 | AM_RANGE( 0xff, 0xff) AM_WRITE ( orionz80_sound_w )
|
| 55 | ADDRESS_MAP_END
|
| 56 | |
| 40 | 57 | /* Input ports */
|
| 41 | 58 | INPUT_PORTS_START( orion128 )
|
| 42 | 59 | PORT_START /* line 0 */
|
| r2306 | r2307 | |
| 131 | 148 | PORT_CONFSETTING(0x02, "Version 4")
|
| 132 | 149 | PORT_CONFSETTING(0x00, "Version 1")
|
| 133 | 150 | INPUT_PORTS_END
|
| 151 | INPUT_PORTS_START( ms7007 )
|
| 152 | PORT_START /* line 0 */
|
| 153 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0)
|
| 154 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9)
|
| 155 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 6") PORT_CODE(KEYCODE_6_PAD)
|
| 156 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ins") PORT_CODE(KEYCODE_INSERT)
|
| 157 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("End") PORT_CODE(KEYCODE_END)
|
| 158 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_SLASH) |
| 159 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS)
|
| 160 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_EQUALS)
|
| 161 | PORT_START /* line 1 */
|
| 162 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7)
|
| 163 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8)
|
| 164 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1)
|
| 165 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2)
|
| 166 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3)
|
| 167 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4)
|
| 168 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5)
|
| 169 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4)
|
| 170 | PORT_START /* line 2 */
|
| 171 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE)
|
| 172 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE)
|
| 173 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1)
|
| 174 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2)
|
| 175 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3)
|
| 176 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5)
|
| 177 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6)
|
| 178 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E)
|
| 179 | PORT_START /* line 3 */
|
| 180 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L)
|
| 181 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D)
|
| 182 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C)
|
| 183 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U)
|
| 184 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K)
|
| 185 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N)
|
| 186 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G)
|
| 187 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P)
|
| 188 | PORT_START /* line 4 */
|
| 189 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| 190 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("@") PORT_CODE(KEYCODE_TILDE) |
| 191 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 192 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 193 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 194 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) |
| 195 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O)
|
| 196 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) |
| 197 | PORT_START /* line 5 */
|
| 198 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) |
| 199 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_COMMA) |
| 200 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE) |
| 201 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) |
| 202 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 203 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 204 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) |
| 205 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) |
| 206 | PORT_START /* line 6 */
|
| 207 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH)
|
| 208 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V)
|
| 209 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 4") PORT_CODE(KEYCODE_4_PAD)
|
| 210 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num +") PORT_CODE(KEYCODE_PLUS_PAD)
|
| 211 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Back") PORT_CODE(KEYCODE_BACKSPACE)
|
| 212 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN)
|
| 213 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(">") PORT_CODE(KEYCODE_STOP)
|
| 214 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT)
|
| 215 | PORT_START /* line 7 */
|
| 216 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) |
| 217 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z)
|
| 218 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 5") PORT_CODE(KEYCODE_5_PAD)
|
| 219 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F6") PORT_CODE(KEYCODE_F6)
|
| 220 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME) |
| 221 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP)
|
| 222 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num /") PORT_CODE(KEYCODE_SLASH_PAD)
|
| 223 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER)
|
| 224 | PORT_START /* line 8 */
|
| 225 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 226 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 227 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 228 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNUSED) |
| 229 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED) |
| 230 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT)
|
| 231 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_RSHIFT)
|
| 232 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL)
|
| 233 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_RCONTROL)
|
| 234 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT)
|
| 235 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_RALT)
|
| 236 | PORT_START /* port 9 */
|
| 237 | PORT_CONFNAME(0x01, 0x01, "ROM Disk")
|
| 238 | PORT_CONFSETTING(0x01, "Installed") |
| 239 | PORT_CONFSETTING(0x00, "Not installed") |
| 240 | PORT_CONFNAME(0x02, 0x02, "ROM Disk version")
|
| 241 | PORT_CONFSETTING(0x02, "Version 4")
|
| 242 | PORT_CONFSETTING(0x00, "Version 1")
|
| 243 | PORT_START /* line 8 */
|
| 244 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num 9") PORT_CODE(KEYCODE_9_PAD)
|
| 245 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Num *") PORT_CODE(KEYCODE_ASTERISK)
|
| 246 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z)
|
| 247 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_OPENBRACE)
|
| 248 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH) |
| 249 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 250 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE)
|
| 251 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE)
|
| 252 |
|
| 253 | INPUT_PORTS_END
|
| 134 | 254 |
|
| 135 | 255 | /* Machine driver */
|
| 136 | 256 | static MACHINE_DRIVER_START( orion128 )
|
| r2306 | r2307 | |
| 157 | 277 | MDRV_VIDEO_UPDATE(orion128)
|
| 158 | 278 | MACHINE_DRIVER_END
|
| 159 | 279 | |
| 280 | static MACHINE_DRIVER_START( orionz80 )
|
| 281 | MDRV_CPU_ADD(Z80, 2500000)
|
| 282 | MDRV_CPU_PROGRAM_MAP(orionz80_mem, 0) |
| 283 | MDRV_CPU_IO_MAP(orionz80_io, 0)
|
| 284 | |
| 285 | MDRV_MACHINE_START( orionz80 )
|
| 286 | MDRV_MACHINE_RESET( orionz80 )
|
| 287 |
|
| 288 | /* video hardware */
|
| 289 | MDRV_SCREEN_ADD("main", RASTER)
|
| 290 | MDRV_SCREEN_REFRESH_RATE(50)
|
| 291 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
|
| 292 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
|
| 293 | MDRV_SCREEN_SIZE(384, 256)
|
| 294 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 256-1)
|
| 295 | |
| 296 | MDRV_PALETTE_LENGTH(18)
|
| 297 | MDRV_PALETTE_INIT( orion128 )
|
| 298 | |
| 299 | MDRV_VIDEO_START(orion128)
|
| 300 | MDRV_VIDEO_UPDATE(orion128)
|
| 301 | MACHINE_DRIVER_END
|
| 302 | |
| 303 | |
| 160 | 304 | static void orion_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
|
| 161 | 305 | {
|
| 162 | 306 | /* floppy */
|
| r2306 | r2307 | |
| 179 | 323 | CONFIG_RAM_DEFAULT(256 * 1024)
|
| 180 | 324 | CONFIG_DEVICE(orion_floppy_getinfo);
|
| 181 | 325 | SYSTEM_CONFIG_END
|
| 326 | |
| 327 | SYSTEM_CONFIG_START(orionz80)
|
| 328 | CONFIG_RAM_DEFAULT(512 * 1024)
|
| 329 | CONFIG_DEVICE(orion_floppy_getinfo);
|
| 330 | SYSTEM_CONFIG_END
|
| 182 | 331 |
|
| 183 | 332 | /* ROM definition */
|
| 184 | 333 | |
| 185 | 334 | ROM_START( orion128 )
|
| 186 | 335 | ROM_REGION( 0x30000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 187 | | ROM_SYSTEM_BIOS(0,"ver 1","Version 1")
|
| 336 | ROM_SYSTEM_BIOS(0,"ver 3.2 rk","Version 3.2 rk")
|
| 188 | 337 | ROMX_LOAD( "m2rk.bin", 0xf800, 0x0800, CRC(2025C234), ROM_BIOS(1))
|
| 189 | | ROM_SYSTEM_BIOS(1,"ver 2","Version 2")
|
| 338 | ROM_SYSTEM_BIOS(1,"ver 3.2.2","Version 3.2.2 rk")
|
| 190 | 339 | ROMX_LOAD( "m2_2rk.bin", 0xf800, 0x0800, CRC(FC662351), ROM_BIOS(2)) |
| 191 | 340 | ROM_LOAD( "romdisk4.bin", 0x10000, 0xdb90, CRC(D4CB4C93)) |
| 192 | 341 | ROM_LOAD( "romdisk1.bin", 0x20000, 0xd800, CRC(61C22EEC))
|
| 193 | 342 | ROM_END
|
| 194 | 343 | |
| 344 | ROM_START( orionms )
|
| 345 | ROM_REGION( 0x30000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 346 | ROM_LOAD( "ms7007.bin", 0xf800, 0x0800, CRC(C6174BA3))
|
| 347 | ROM_LOAD( "romdisk4.bin", 0x10000, 0xdb90, CRC(D4CB4C93)) |
| 348 | ROM_LOAD( "romdisk1.bin", 0x20000, 0xd800, CRC(61C22EEC))
|
| 349 | ROM_END
|
| 350 | |
| 351 | ROM_START( orionz80 )
|
| 352 | ROM_REGION( 0x30000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 353 | ROM_SYSTEM_BIOS(0,"ver 3.1","Version 3.1")
|
| 354 | ROMX_LOAD( "m31.bin", 0xf800, 0x0800, CRC(007C6DC6),ROM_BIOS(1))
|
| 355 | ROM_SYSTEM_BIOS(1,"ver 3.2 zrk","Version 3.2 zrk")
|
| 356 | ROMX_LOAD( "m32zrk.bin", 0xf800, 0x0800, CRC(4EC3F012),ROM_BIOS(2))
|
| 357 | ROM_SYSTEM_BIOS(2,"ver 3.3 zrkd","Version 3.3 zrkd")
|
| 358 | ROMX_LOAD( "m33zrkd.bin", 0xf800, 0x0800, CRC(F404032D),ROM_BIOS(3))
|
| 359 | ROM_SYSTEM_BIOS(3,"ver 3.4 zrk","Version 3.4 zrk")
|
| 360 | ROMX_LOAD( "m34zrk.bin", 0xf800, 0x0800, CRC(787C3903),ROM_BIOS(4))
|
| 361 | ROM_SYSTEM_BIOS(4,"ver 3.5 zrkd","Version 3.5 zrkd")
|
| 362 | ROMX_LOAD( "m35zrkd.bin", 0xf800, 0x0800, CRC(9368B38F),ROM_BIOS(5))
|
| 363 | ROM_LOAD( "romdisk4.bin", 0x10000, 0xdb90, CRC(D4CB4C93)) |
| 364 | ROM_LOAD( "romdisk1.bin", 0x20000, 0xd800, CRC(61C22EEC))
|
| 365 | ROM_END
|
| 366 | ROM_START( orionzms )
|
| 367 | ROM_REGION( 0x30000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 368 | ROM_SYSTEM_BIOS(0,"ver 3.2 zms","Version 3.2 zms")
|
| 369 | ROMX_LOAD( "m32zms.bin", 0xf800, 0x0800, CRC(44CFD2AE),ROM_BIOS(1))
|
| 370 | ROM_SYSTEM_BIOS(1,"ver 3.4 zms","Version 3.4 zms")
|
| 371 | ROMX_LOAD( "m34zms.bin", 0xf800, 0x0800, CRC(0F87A80B),ROM_BIOS(2))
|
| 372 | ROM_SYSTEM_BIOS(2,"ver 3.5 zmsd","Version 3.5 zmsd")
|
| 373 | ROMX_LOAD( "m35zmsd.bin", 0xf800, 0x0800, CRC(F714FF37),ROM_BIOS(3))
|
| 374 | ROM_LOAD( "romdisk4.bin", 0x10000, 0xdb90, CRC(D4CB4C93)) |
| 375 | ROM_LOAD( "romdisk1.bin", 0x20000, 0xd800, CRC(61C22EEC))
|
| 376 | ROM_END
|
| 377 | |
| 195 | 378 | /* Driver */
|
| 196 | 379 |
|
| 197 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */
|
| 198 | | COMP( 1983, orion128, 0, 0, orion128, orion128, orion128, orion128, "", "Orion 128", 0)
|
| 380 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */
|
| 381 | COMP( 1990, orion128, 0, 0, orion128, orion128, orion128, orion128, "", "Orion 128", 0)
|
| 382 | COMP( 1990, orionms, orion128, 0, orion128, ms7007, orion128, orion128, "", "Orion 128 (MS7007)", 0)
|
| 383 | COMP( 1990, orionz80, orion128, 0, orionz80, orion128, orion128, orionz80, "", "Orion 128 + Z80 Card II", 0)
|
| 384 | COMP( 1990, orionzms, orion128, 0, orionz80, ms7007, orion128, orionz80, "", "Orion 128 + Z80 Card II (MS7007)", 0)
|