src/mess/machine/orion.c
| r2312 | r2313 | |
| 1 | | /***************************************************************************
|
| 2 | | |
| 3 | | Orion machine driver by Miodrag Milanovic
|
| 4 | | |
| 5 | | 02/04/2008 Preliminary driver.
|
| 6 | |
|
| 7 | | ****************************************************************************/
|
| 8 | | |
| 9 | | |
| 10 | | #include "driver.h"
|
| 11 | | #include "cpu/i8085/i8085.h"
|
| 12 | | #include "devices/cassette.h"
|
| 13 | | #include "devices/basicdsk.h"
|
| 14 | | #include "machine/8255ppi.h"
|
| 15 | | #include "machine/wd17xx.h"
|
| 16 | | |
| 17 | | UINT8 romdisk_lsb,romdisk_msb;
|
| 18 | | UINT8 orion_keyboard_line;
|
| 19 | | UINT8 orion128_video_mode;
|
| 20 | | UINT8 orion128_video_page;
|
| 21 | | UINT8 orion128_memory_page;
|
| 22 | | |
| 23 | | UINT8 orionz80_memory_page;
|
| 24 | | UINT8 orionz80_dispatcher;
|
| 25 | | |
| 26 | | READ8_HANDLER (orion_romdisk_porta_r )
|
| 27 | | {
|
| 28 | | UINT8 *romdisk = memory_region(REGION_CPU1) + 0x10000; |
| 29 | | switch(readinputport(9)) {
|
| 30 | | case 3 : return romdisk[romdisk_msb*256+romdisk_lsb];
|
| 31 | | case 1 : return romdisk[romdisk_msb*256+romdisk_lsb+0x10000];
|
| 32 | | }
|
| 33 | | return 0xff;
|
| 34 | | }
|
| 35 | | |
| 36 | | WRITE8_HANDLER (orion_romdisk_portb_w )
|
| 37 | | {
|
| 38 | | romdisk_lsb = data;
|
| 39 | | }
|
| 40 | | |
| 41 | | WRITE8_HANDLER (orion_romdisk_portc_w )
|
| 42 | | { |
| 43 | | romdisk_msb = data;
|
| 44 | | }
|
| 45 | | |
| 46 | | READ8_HANDLER (orion_keyboard_portb_r )
|
| 47 | | { |
| 48 | | return readinputport(orion_keyboard_line);
|
| 49 | | }
|
| 50 | | |
| 51 | | READ8_HANDLER (orion_keyboard_portc_r )
|
| 52 | | {
|
| 53 | | return readinputport(8); |
| 54 | | }
|
| 55 | | |
| 56 | | WRITE8_HANDLER (orion_keyboard_porta_w )
|
| 57 | | {
|
| 58 | | switch (data ^ 0xff) {
|
| 59 | | case 0x01 : orion_keyboard_line = 0;break;
|
| 60 | | case 0x02 : orion_keyboard_line = 1;break;
|
| 61 | | case 0x04 : orion_keyboard_line = 2;break;
|
| 62 | | case 0x08 : orion_keyboard_line = 3;break;
|
| 63 | | case 0x10 : orion_keyboard_line = 4;break;
|
| 64 | | case 0x20 : orion_keyboard_line = 5;break;
|
| 65 | | case 0x40 : orion_keyboard_line = 6;break;
|
| 66 | | case 0x80 : orion_keyboard_line = 7;break;
|
| 67 | | }
|
| 68 | | }
|
| 69 | | |
| 70 | | static const ppi8255_interface orion128_ppi8255_interface =
|
| 71 | | {
|
| 72 | | 2,
|
| 73 | | {orion_romdisk_porta_r, NULL, },
|
| 74 | | {NULL, orion_keyboard_portb_r},
|
| 75 | | {NULL, orion_keyboard_portc_r},
|
| 76 | | {NULL, orion_keyboard_porta_w},
|
| 77 | | {orion_romdisk_portb_w, NULL, },
|
| 78 | | {orion_romdisk_portc_w, NULL, }
|
| 79 | | };
|
| 80 | | |
| 81 | | /* Driver initialization */
|
| 82 | | DRIVER_INIT( orion128 )
|
| 83 | | {
|
| 84 | | memset(mess_ram,0,256*1024);
|
| 85 | | }
|
| 86 | | |
| 87 | | |
| 88 | | MACHINE_START( orion128 )
|
| 89 | | {
|
| 90 | | wd17xx_init(machine, WD_TYPE_1793, NULL , NULL);
|
| 91 | | wd17xx_set_density (DEN_FM_HI);
|
| 92 | | }
|
| 93 | | |
| 94 | | READ8_HANDLER ( orion128_system_r ) |
| 95 | | {
|
| 96 | | return ppi8255_1_r(machine, offset & 3);
|
| 97 | | }
|
| 98 | | |
| 99 | | WRITE8_HANDLER ( orion128_system_w ) |
| 100 | | {
|
| 101 | | ppi8255_1_w(machine, offset & 3, data);
|
| 102 | | }
|
| 103 | | |
| 104 | | READ8_HANDLER ( orion128_romdisk_r ) |
| 105 | | {
|
| 106 | | return ppi8255_0_r(machine, offset & 3);
|
| 107 | | }
|
| 108 | | |
| 109 | | WRITE8_HANDLER ( orion128_romdisk_w ) |
| 110 | | {
|
| 111 | | ppi8255_0_w(machine, offset & 3, data);
|
| 112 | | }
|
| 113 | | |
| 114 | | WRITE8_HANDLER ( orion128_video_mode_w )
|
| 115 | | {
|
| 116 | | orion128_video_mode = data;
|
| 117 | | }
|
| 118 | | |
| 119 | | WRITE8_HANDLER ( orion128_video_page_w )
|
| 120 | | {
|
| 121 | | //logerror("orion128_video_page_w %02x\n",data);
|
| 122 | | orion128_video_page = data & 3;
|
| 123 | | }
|
| 124 | | |
| 125 | | |
| 126 | | WRITE8_HANDLER ( orion128_memory_page_w )
|
| 127 | | { |
| 128 | | if (data!=orion128_memory_page ) {
|
| 129 | | memory_set_bankptr(1, mess_ram + (data & 3) * 0x10000);
|
| 130 | | orion128_memory_page = (data & 3);
|
| 131 | | }
|
| 132 | | }
|
| 133 | | |
| 134 | | MACHINE_RESET ( orion128 ) |
| 135 | | { |
| 136 | | wd17xx_reset();
|
| 137 | | ppi8255_init(&orion128_ppi8255_interface);
|
| 138 | | orion_keyboard_line = 0;
|
| 139 | | orion128_video_page = 0;
|
| 140 | | orion128_video_mode = 0;
|
| 141 | | orion128_memory_page = -1;
|
| 142 | | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0xf800);
|
| 143 | | memory_set_bankptr(2, mess_ram + 0xf000);
|
| 144 | | }
|
| 145 | | |
| 146 | | |
| 147 | | DEVICE_IMAGE_LOAD( orion_floppy )
|
| 148 | | {
|
| 149 | | int size;
|
| 150 | | |
| 151 | | if (! image_has_been_created(image))
|
| 152 | | {
|
| 153 | | size = image_length(image);
|
| 154 | | |
| 155 | | switch (size)
|
| 156 | | {
|
| 157 | | case 800*1024:
|
| 158 | | break;
|
| 159 | | default:
|
| 160 | | return INIT_FAIL;
|
| 161 | | }
|
| 162 | | }
|
| 163 | | else
|
| 164 | | return INIT_FAIL;
|
| 165 | | |
| 166 | | if (device_load_basicdsk_floppy (image) != INIT_PASS)
|
| 167 | | return INIT_FAIL;
|
| 168 | | |
| 169 | | basicdsk_set_geometry (image, 80, 2, 5, 1024, 1, 0, FALSE);
|
| 170 | | return INIT_PASS;
|
| 171 | | }
|
| 172 | | |
| 173 | | WRITE8_HANDLER ( orion_disk_control_w )
|
| 174 | | {
|
| 175 | | wd17xx_set_side(((data & 0x10) >> 4) ^ 1);
|
| 176 | | wd17xx_set_drive(data & 3); |
| 177 | | }
|
| 178 | | |
| 179 | | READ8_HANDLER ( orion128_floppy_r )
|
| 180 | | {
|
| 181 | | switch(offset) {
|
| 182 | | case 0x0 :
|
| 183 | | case 0x10 : return wd17xx_status_r(machine,0);
|
| 184 | | case 0x1 :
|
| 185 | | case 0x11 : return wd17xx_track_r(machine,0);
|
| 186 | | case 0x2 :
|
| 187 | | case 0x12 : return wd17xx_sector_r(machine,0);
|
| 188 | | case 0x3 :
|
| 189 | | case 0x13 : return wd17xx_data_r(machine,0);
|
| 190 | | }
|
| 191 | | return 0xff;
|
| 192 | | }
|
| 193 | | |
| 194 | | WRITE8_HANDLER ( orion128_floppy_w )
|
| 195 | | { |
| 196 | | switch(offset) {
|
| 197 | | case 0x0 :
|
| 198 | | case 0x10 : wd17xx_command_w(machine,0,data); break;
|
| 199 | | case 0x1 :
|
| 200 | | case 0x11 : wd17xx_track_w(machine,0,data);break;
|
| 201 | | case 0x2 :
|
| 202 | | case 0x12 : wd17xx_sector_w(machine,0,data);break;
|
| 203 | | case 0x3 :
|
| 204 | | case 0x13 : wd17xx_data_w(machine,0,data);break;
|
| 205 | | case 0x4 : |
| 206 | | case 0x14 : |
| 207 | | case 0x20 : orion_disk_control_w(machine, offset, data);break;
|
| 208 | | }
|
| 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 | | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Orion machine driver by Miodrag Milanovic |
| 4 | |
| 5 | 02/04/2008 Preliminary driver. |
| 6 | |
| 7 | ****************************************************************************/ |
| 8 | |
| 9 | |
| 10 | #include "driver.h" |
| 11 | #include "cpu/i8085/i8085.h" |
| 12 | #include "devices/cassette.h" |
| 13 | #include "devices/basicdsk.h" |
| 14 | #include "machine/8255ppi.h" |
| 15 | #include "machine/wd17xx.h" |
| 16 | |
| 17 | UINT8 romdisk_lsb,romdisk_msb; |
| 18 | UINT8 orion_keyboard_line; |
| 19 | UINT8 orion128_video_mode; |
| 20 | UINT8 orion128_video_page; |
| 21 | UINT8 orion128_memory_page; |
| 22 | |
| 23 | UINT8 orionz80_memory_page; |
| 24 | UINT8 orionz80_dispatcher; |
| 25 | |
| 26 | READ8_HANDLER (orion_romdisk_porta_r ) |
| 27 | { |
| 28 | UINT8 *romdisk = memory_region(REGION_CPU1) + 0x10000; |
| 29 | switch(readinputport(9)) { |
| 30 | case 3 : return romdisk[romdisk_msb*256+romdisk_lsb]; |
| 31 | case 1 : return romdisk[romdisk_msb*256+romdisk_lsb+0x10000]; |
| 32 | } |
| 33 | return 0xff; |
| 34 | } |
| 35 | |
| 36 | WRITE8_HANDLER (orion_romdisk_portb_w ) |
| 37 | { |
| 38 | romdisk_lsb = data; |
| 39 | } |
| 40 | |
| 41 | WRITE8_HANDLER (orion_romdisk_portc_w ) |
| 42 | { |
| 43 | romdisk_msb = data; |
| 44 | } |
| 45 | |
| 46 | READ8_HANDLER (orion_keyboard_portb_r ) |
| 47 | { |
| 48 | return readinputport(orion_keyboard_line); |
| 49 | } |
| 50 | |
| 51 | READ8_HANDLER (orion_keyboard_portc_r ) |
| 52 | { |
| 53 | return readinputport(8); |
| 54 | } |
| 55 | |
| 56 | WRITE8_HANDLER (orion_keyboard_porta_w ) |
| 57 | { |
| 58 | switch (data ^ 0xff) { |
| 59 | case 0x01 : orion_keyboard_line = 0;break; |
| 60 | case 0x02 : orion_keyboard_line = 1;break; |
| 61 | case 0x04 : orion_keyboard_line = 2;break; |
| 62 | case 0x08 : orion_keyboard_line = 3;break; |
| 63 | case 0x10 : orion_keyboard_line = 4;break; |
| 64 | case 0x20 : orion_keyboard_line = 5;break; |
| 65 | case 0x40 : orion_keyboard_line = 6;break; |
| 66 | case 0x80 : orion_keyboard_line = 7;break; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | static const ppi8255_interface orion128_ppi8255_interface = |
| 71 | { |
| 72 | 2, |
| 73 | {orion_romdisk_porta_r, NULL, }, |
| 74 | {NULL, orion_keyboard_portb_r}, |
| 75 | {NULL, orion_keyboard_portc_r}, |
| 76 | {NULL, orion_keyboard_porta_w}, |
| 77 | {orion_romdisk_portb_w, NULL, }, |
| 78 | {orion_romdisk_portc_w, NULL, } |
| 79 | }; |
| 80 | |
| 81 | /* Driver initialization */ |
| 82 | DRIVER_INIT( orion128 ) |
| 83 | { |
| 84 | memset(mess_ram,0,256*1024); |
| 85 | } |
| 86 | |
| 87 | |
| 88 | MACHINE_START( orion128 ) |
| 89 | { |
| 90 | wd17xx_init(machine, WD_TYPE_1793, NULL , NULL); |
| 91 | wd17xx_set_density (DEN_FM_HI); |
| 92 | } |
| 93 | |
| 94 | READ8_HANDLER ( orion128_system_r ) |
| 95 | { |
| 96 | return ppi8255_1_r(machine, offset & 3); |
| 97 | } |
| 98 | |
| 99 | WRITE8_HANDLER ( orion128_system_w ) |
| 100 | { |
| 101 | ppi8255_1_w(machine, offset & 3, data); |
| 102 | } |
| 103 | |
| 104 | READ8_HANDLER ( orion128_romdisk_r ) |
| 105 | { |
| 106 | return ppi8255_0_r(machine, offset & 3); |
| 107 | } |
| 108 | |
| 109 | WRITE8_HANDLER ( orion128_romdisk_w ) |
| 110 | { |
| 111 | ppi8255_0_w(machine, offset & 3, data); |
| 112 | } |
| 113 | |
| 114 | WRITE8_HANDLER ( orion128_video_mode_w ) |
| 115 | { |
| 116 | orion128_video_mode = data; |
| 117 | } |
| 118 | |
| 119 | WRITE8_HANDLER ( orion128_video_page_w ) |
| 120 | { |
| 121 | //logerror("orion128_video_page_w %02x\n",data); |
| 122 | orion128_video_page = data & 3; |
| 123 | } |
| 124 | |
| 125 | |
| 126 | WRITE8_HANDLER ( orion128_memory_page_w ) |
| 127 | { |
| 128 | if (data!=orion128_memory_page ) { |
| 129 | memory_set_bankptr(1, mess_ram + (data & 3) * 0x10000); |
| 130 | orion128_memory_page = (data & 3); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | MACHINE_RESET ( orion128 ) |
| 135 | { |
| 136 | wd17xx_reset(); |
| 137 | ppi8255_init(&orion128_ppi8255_interface); |
| 138 | orion_keyboard_line = 0; |
| 139 | orion128_video_page = 0; |
| 140 | orion128_video_mode = 0; |
| 141 | orion128_memory_page = -1; |
| 142 | memory_set_bankptr(1, memory_region(REGION_CPU1) + 0xf800); |
| 143 | memory_set_bankptr(2, mess_ram + 0xf000); |
| 144 | } |
| 145 | |
| 146 | |
| 147 | DEVICE_IMAGE_LOAD( orion_floppy ) |
| 148 | { |
| 149 | int size; |
| 150 | |
| 151 | if (! image_has_been_created(image)) |
| 152 | { |
| 153 | size = image_length(image); |
| 154 | |
| 155 | switch (size) |
| 156 | { |
| 157 | case 800*1024: |
| 158 | break; |
| 159 | default: |
| 160 | return INIT_FAIL; |
| 161 | } |
| 162 | } |
| 163 | else |
| 164 | return INIT_FAIL; |
| 165 | |
| 166 | if (device_load_basicdsk_floppy (image) != INIT_PASS) |
| 167 | return INIT_FAIL; |
| 168 | |
| 169 | basicdsk_set_geometry (image, 80, 2, 5, 1024, 1, 0, FALSE); |
| 170 | return INIT_PASS; |
| 171 | } |
| 172 | |
| 173 | WRITE8_HANDLER ( orion_disk_control_w ) |
| 174 | { |
| 175 | wd17xx_set_side(((data & 0x10) >> 4) ^ 1); |
| 176 | wd17xx_set_drive(data & 3); |
| 177 | } |
| 178 | |
| 179 | READ8_HANDLER ( orion128_floppy_r ) |
| 180 | { |
| 181 | switch(offset) { |
| 182 | case 0x0 : |
| 183 | case 0x10 : return wd17xx_status_r(machine,0); |
| 184 | case 0x1 : |
| 185 | case 0x11 : return wd17xx_track_r(machine,0); |
| 186 | case 0x2 : |
| 187 | case 0x12 : return wd17xx_sector_r(machine,0); |
| 188 | case 0x3 : |
| 189 | case 0x13 : return wd17xx_data_r(machine,0); |
| 190 | } |
| 191 | return 0xff; |
| 192 | } |
| 193 | |
| 194 | WRITE8_HANDLER ( orion128_floppy_w ) |
| 195 | { |
| 196 | switch(offset) { |
| 197 | case 0x0 : |
| 198 | case 0x10 : wd17xx_command_w(machine,0,data); break; |
| 199 | case 0x1 : |
| 200 | case 0x11 : wd17xx_track_w(machine,0,data);break; |
| 201 | case 0x2 : |
| 202 | case 0x12 : wd17xx_sector_w(machine,0,data);break; |
| 203 | case 0x3 : |
| 204 | case 0x13 : wd17xx_data_w(machine,0,data);break; |
| 205 | case 0x4 : |
| 206 | case 0x14 : |
| 207 | case 0x20 : orion_disk_control_w(machine, offset, data);break; |
| 208 | } |
| 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
| r2312 | r2313 | |
| 1 | | /***************************************************************************
|
| 2 | | |
| 3 | | Orion driver by Miodrag Milanovic
|
| 4 | | |
| 5 | | 02/04/2008 Preliminary driver.
|
| 6 | |
|
| 7 | | ****************************************************************************/
|
| 8 | | |
| 9 | | |
| 10 | | #include "driver.h"
|
| 11 | | #include "cpu/i8085/i8085.h"
|
| 12 | | #include "includes/orion.h"
|
| 13 | | #include "devices/basicdsk.h"
|
| 14 | | |
| 15 | | /* Address maps */
|
| 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)
|
| 19 | | AM_RANGE( 0xf400, 0xf4ff ) AM_READWRITE(orion128_system_r,orion128_system_w) // Keyboard and cassette
|
| 20 | | AM_RANGE( 0xf500, 0xf5ff ) AM_READWRITE(orion128_romdisk_r,orion128_romdisk_w) |
| 21 | | AM_RANGE( 0xf700, 0xf7ff ) AM_READWRITE(orion128_floppy_r,orion128_floppy_w) |
| 22 | | AM_RANGE( 0xf800, 0xffff ) AM_ROM
|
| 23 | | AM_RANGE( 0xf800, 0xf8ff ) AM_WRITE (orion128_video_mode_w)
|
| 24 | | AM_RANGE( 0xf900, 0xf9ff ) AM_WRITE (orion128_memory_page_w)
|
| 25 | | AM_RANGE( 0xfa00, 0xfaff ) AM_WRITE (orion128_video_page_w) |
| 26 | | ADDRESS_MAP_END
|
| 27 | | |
| 28 | | static ADDRESS_MAP_START( orion128_io , ADDRESS_SPACE_IO, 8)
|
| 29 | | ADDRESS_MAP_GLOBAL_MASK(0xff)
|
| 30 | | ADDRESS_MAP_UNMAP_HIGH
|
| 31 | | AM_RANGE( 0xf8, 0xf8) AM_WRITE ( orion128_video_mode_w )
|
| 32 | | AM_RANGE( 0xf9, 0xf9) AM_WRITE ( orion128_memory_page_w )
|
| 33 | | AM_RANGE( 0xfa, 0xfa) AM_WRITE ( orion128_video_page_w )
|
| 34 | | ADDRESS_MAP_END
|
| 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 | | |
| 57 | | /* Input ports */
|
| 58 | | INPUT_PORTS_START( orion128 )
|
| 59 | | PORT_START /* line 0 */
|
| 60 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME)
|
| 61 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ins") PORT_CODE(KEYCODE_INSERT)
|
| 62 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC)
|
| 63 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1)
|
| 64 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 65 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 66 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4)
|
| 67 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 68 | | PORT_START /* line 1 */
|
| 69 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB)
|
| 70 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("End") PORT_CODE(KEYCODE_END)
|
| 71 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER)
|
| 72 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Back") PORT_CODE(KEYCODE_BACKSPACE)
|
| 73 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) |
| 74 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP) |
| 75 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT)
|
| 76 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN)
|
| 77 | | PORT_START /* line 2 */
|
| 78 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0)
|
| 79 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1)
|
| 80 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2)
|
| 81 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3)
|
| 82 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 83 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 84 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6)
|
| 85 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7)
|
| 86 | | PORT_START /* line 3 */
|
| 87 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8)
|
| 88 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9)
|
| 89 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_EQUALS)
|
| 90 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("+") PORT_CODE(KEYCODE_COLON)
|
| 91 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_COMMA) |
| 92 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) |
| 93 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(">") PORT_CODE(KEYCODE_STOP)
|
| 94 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_SLASH)
|
| 95 | | PORT_START /* line 4 */
|
| 96 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("~") PORT_CODE(KEYCODE_TILDE)
|
| 97 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A)
|
| 98 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B)
|
| 99 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C)
|
| 100 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) |
| 101 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) |
| 102 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F)
|
| 103 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G)
|
| 104 | | PORT_START /* line 5 */
|
| 105 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H)
|
| 106 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I)
|
| 107 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J)
|
| 108 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K)
|
| 109 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 110 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 111 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N)
|
| 112 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O)
|
| 113 | | PORT_START /* line 6 */
|
| 114 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P)
|
| 115 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q)
|
| 116 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R)
|
| 117 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S)
|
| 118 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 119 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 120 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V)
|
| 121 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W)
|
| 122 | | PORT_START /* line 7 */
|
| 123 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X)
|
| 124 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y)
|
| 125 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z)
|
| 126 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE)
|
| 127 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH) |
| 128 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 129 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE)
|
| 130 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE)
|
| 131 | | PORT_START /* line 8 */
|
| 132 | | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 133 | | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 134 | | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 135 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNUSED) |
| 136 | | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED) |
| 137 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT)
|
| 138 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_RSHIFT)
|
| 139 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL)
|
| 140 | | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_RCONTROL)
|
| 141 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT)
|
| 142 | | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_RALT)
|
| 143 | | PORT_START /* port 9 */
|
| 144 | | PORT_CONFNAME(0x01, 0x01, "ROM Disk")
|
| 145 | | PORT_CONFSETTING(0x01, "Installed") |
| 146 | | PORT_CONFSETTING(0x00, "Not installed") |
| 147 | | PORT_CONFNAME(0x02, 0x02, "ROM Disk version")
|
| 148 | | PORT_CONFSETTING(0x02, "Version 4")
|
| 149 | | PORT_CONFSETTING(0x00, "Version 1")
|
| 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
|
| 254 | |
|
| 255 | | /* Machine driver */
|
| 256 | | static MACHINE_DRIVER_START( orion128 )
|
| 257 | | MDRV_CPU_ADD(8080, 2000000)
|
| 258 | | MDRV_CPU_PROGRAM_MAP(orion128_mem, 0) |
| 259 | | MDRV_CPU_IO_MAP(orion128_io, 0)
|
| 260 | | |
| 261 | | MDRV_MACHINE_START( orion128 )
|
| 262 | | MDRV_MACHINE_RESET( orion128 )
|
| 263 | |
|
| 264 | | /* video hardware */
|
| 265 | | MDRV_SCREEN_ADD("main", RASTER)
|
| 266 | | MDRV_SCREEN_REFRESH_RATE(50)
|
| 267 | | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
|
| 268 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
|
| 269 | | MDRV_SCREEN_SIZE(384, 256)
|
| 270 | | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 256-1)
|
| 271 | | |
| 272 | | MDRV_PALETTE_LENGTH(18)
|
| 273 | | MDRV_PALETTE_INIT( orion128 )
|
| 274 | | |
| 275 | | |
| 276 | | MDRV_VIDEO_START(orion128)
|
| 277 | | MDRV_VIDEO_UPDATE(orion128)
|
| 278 | | MACHINE_DRIVER_END
|
| 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 | | |
| 304 | | static void orion_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
|
| 305 | | {
|
| 306 | | /* floppy */
|
| 307 | | switch(state)
|
| 308 | | {
|
| 309 | | /* --- the following bits of info are returned as 64-bit signed integers --- */
|
| 310 | | case MESS_DEVINFO_INT_COUNT: info->i = 4; break;
|
| 311 | | |
| 312 | | /* --- the following bits of info are returned as pointers to data or functions --- */
|
| 313 | | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(orion_floppy); break;
|
| 314 | | |
| 315 | | /* --- the following bits of info are returned as NULL-terminated strings --- */
|
| 316 | | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "odi,img"); break;
|
| 317 | | |
| 318 | | default: legacybasicdsk_device_getinfo(devclass, state, info); break;
|
| 319 | | }
|
| 320 | | }
|
| 321 | |
|
| 322 | | SYSTEM_CONFIG_START(orion128)
|
| 323 | | CONFIG_RAM_DEFAULT(256 * 1024)
|
| 324 | | CONFIG_DEVICE(orion_floppy_getinfo);
|
| 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
|
| 331 | |
|
| 332 | | /* ROM definition */
|
| 333 | | |
| 334 | | ROM_START( orion128 )
|
| 335 | | ROM_REGION( 0x30000, REGION_CPU1, ROMREGION_ERASEFF )
|
| 336 | | ROM_SYSTEM_BIOS(0,"ver 3.2 rk","Version 3.2 rk")
|
| 337 | | ROMX_LOAD( "m2rk.bin", 0xf800, 0x0800, CRC(2025C234), ROM_BIOS(1))
|
| 338 | | ROM_SYSTEM_BIOS(1,"ver 3.2.2","Version 3.2.2 rk")
|
| 339 | | ROMX_LOAD( "m2_2rk.bin", 0xf800, 0x0800, CRC(FC662351), ROM_BIOS(2)) |
| 340 | | ROM_LOAD( "romdisk4.bin", 0x10000, 0xdb90, CRC(D4CB4C93)) |
| 341 | | ROM_LOAD( "romdisk1.bin", 0x20000, 0xd800, CRC(61C22EEC))
|
| 342 | | ROM_END
|
| 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 | | |
| 378 | | /* Driver */
|
| 379 | |
|
| 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)
|
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Orion driver by Miodrag Milanovic |
| 4 | |
| 5 | 02/04/2008 Preliminary driver. |
| 6 | |
| 7 | ****************************************************************************/ |
| 8 | |
| 9 | |
| 10 | #include "driver.h" |
| 11 | #include "cpu/i8085/i8085.h" |
| 12 | #include "includes/orion.h" |
| 13 | #include "devices/basicdsk.h" |
| 14 | |
| 15 | /* Address maps */ |
| 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) |
| 19 | AM_RANGE( 0xf400, 0xf4ff ) AM_READWRITE(orion128_system_r,orion128_system_w) // Keyboard and cassette |
| 20 | AM_RANGE( 0xf500, 0xf5ff ) AM_READWRITE(orion128_romdisk_r,orion128_romdisk_w) |
| 21 | AM_RANGE( 0xf700, 0xf7ff ) AM_READWRITE(orion128_floppy_r,orion128_floppy_w) |
| 22 | AM_RANGE( 0xf800, 0xffff ) AM_ROM |
| 23 | AM_RANGE( 0xf800, 0xf8ff ) AM_WRITE (orion128_video_mode_w) |
| 24 | AM_RANGE( 0xf900, 0xf9ff ) AM_WRITE (orion128_memory_page_w) |
| 25 | AM_RANGE( 0xfa00, 0xfaff ) AM_WRITE (orion128_video_page_w) |
| 26 | ADDRESS_MAP_END |
| 27 | |
| 28 | static ADDRESS_MAP_START( orion128_io , ADDRESS_SPACE_IO, 8) |
| 29 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 30 | ADDRESS_MAP_UNMAP_HIGH |
| 31 | AM_RANGE( 0xf8, 0xf8) AM_WRITE ( orion128_video_mode_w ) |
| 32 | AM_RANGE( 0xf9, 0xf9) AM_WRITE ( orion128_memory_page_w ) |
| 33 | AM_RANGE( 0xfa, 0xfa) AM_WRITE ( orion128_video_page_w ) |
| 34 | ADDRESS_MAP_END |
| 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 | |
| 57 | /* Input ports */ |
| 58 | INPUT_PORTS_START( orion128 ) |
| 59 | PORT_START /* line 0 */ |
| 60 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Home") PORT_CODE(KEYCODE_HOME) |
| 61 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ins") PORT_CODE(KEYCODE_INSERT) |
| 62 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Esc") PORT_CODE(KEYCODE_ESC) |
| 63 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F1") PORT_CODE(KEYCODE_F1) |
| 64 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F2") PORT_CODE(KEYCODE_F2) |
| 65 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F3") PORT_CODE(KEYCODE_F3) |
| 66 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F4") PORT_CODE(KEYCODE_F4) |
| 67 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F5") PORT_CODE(KEYCODE_F5) |
| 68 | PORT_START /* line 1 */ |
| 69 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Tab") PORT_CODE(KEYCODE_TAB) |
| 70 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("End") PORT_CODE(KEYCODE_END) |
| 71 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Enter") PORT_CODE(KEYCODE_ENTER) |
| 72 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Back") PORT_CODE(KEYCODE_BACKSPACE) |
| 73 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Left") PORT_CODE(KEYCODE_LEFT) |
| 74 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Up") PORT_CODE(KEYCODE_UP) |
| 75 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Right") PORT_CODE(KEYCODE_RIGHT) |
| 76 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Down") PORT_CODE(KEYCODE_DOWN) |
| 77 | PORT_START /* line 2 */ |
| 78 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("0") PORT_CODE(KEYCODE_0) |
| 79 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1) |
| 80 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2) |
| 81 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) |
| 82 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4) |
| 83 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5) |
| 84 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) |
| 85 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7) |
| 86 | PORT_START /* line 3 */ |
| 87 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8) |
| 88 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("9") PORT_CODE(KEYCODE_9) |
| 89 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_EQUALS) |
| 90 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("+") PORT_CODE(KEYCODE_COLON) |
| 91 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("<") PORT_CODE(KEYCODE_COMMA) |
| 92 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("-") PORT_CODE(KEYCODE_MINUS) |
| 93 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(">") PORT_CODE(KEYCODE_STOP) |
| 94 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("?") PORT_CODE(KEYCODE_SLASH) |
| 95 | PORT_START /* line 4 */ |
| 96 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("~") PORT_CODE(KEYCODE_TILDE) |
| 97 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A) |
| 98 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B) |
| 99 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) |
| 100 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D) |
| 101 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E) |
| 102 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F) |
| 103 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) |
| 104 | PORT_START /* line 5 */ |
| 105 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H) |
| 106 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("I") PORT_CODE(KEYCODE_I) |
| 107 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) |
| 108 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("K") PORT_CODE(KEYCODE_K) |
| 109 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("L") PORT_CODE(KEYCODE_L) |
| 110 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("M") PORT_CODE(KEYCODE_M) |
| 111 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("N") PORT_CODE(KEYCODE_N) |
| 112 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) |
| 113 | PORT_START /* line 6 */ |
| 114 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("P") PORT_CODE(KEYCODE_P) |
| 115 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Q") PORT_CODE(KEYCODE_Q) |
| 116 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("R") PORT_CODE(KEYCODE_R) |
| 117 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("S") PORT_CODE(KEYCODE_S) |
| 118 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("T") PORT_CODE(KEYCODE_T) |
| 119 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("U") PORT_CODE(KEYCODE_U) |
| 120 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("V") PORT_CODE(KEYCODE_V) |
| 121 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("W") PORT_CODE(KEYCODE_W) |
| 122 | PORT_START /* line 7 */ |
| 123 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("X") PORT_CODE(KEYCODE_X) |
| 124 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Y") PORT_CODE(KEYCODE_Y) |
| 125 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) |
| 126 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("[") PORT_CODE(KEYCODE_OPENBRACE) |
| 127 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("\\") PORT_CODE(KEYCODE_BACKSLASH) |
| 128 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("]") PORT_CODE(KEYCODE_CLOSEBRACE) |
| 129 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("'") PORT_CODE(KEYCODE_QUOTE) |
| 130 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Space") PORT_CODE(KEYCODE_SPACE) |
| 131 | PORT_START /* line 8 */ |
| 132 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
| 133 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
| 134 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
| 135 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_UNUSED) |
| 136 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED) |
| 137 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) |
| 138 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_RSHIFT) |
| 139 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_LCONTROL) |
| 140 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Ctrl") PORT_CODE(KEYCODE_RCONTROL) |
| 141 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT) |
| 142 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_RALT) |
| 143 | PORT_START /* port 9 */ |
| 144 | PORT_CONFNAME(0x01, 0x01, "ROM Disk") |
| 145 | PORT_CONFSETTING(0x01, "Installed") |
| 146 | PORT_CONFSETTING(0x00, "Not installed") |
| 147 | PORT_CONFNAME(0x02, 0x02, "ROM Disk version") |
| 148 | PORT_CONFSETTING(0x02, "Version 4") |
| 149 | PORT_CONFSETTING(0x00, "Version 1") |
| 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 |
| 254 | |
| 255 | /* Machine driver */ |
| 256 | static MACHINE_DRIVER_START( orion128 ) |
| 257 | MDRV_CPU_ADD(8080, 2000000) |
| 258 | MDRV_CPU_PROGRAM_MAP(orion128_mem, 0) |
| 259 | MDRV_CPU_IO_MAP(orion128_io, 0) |
| 260 | |
| 261 | MDRV_MACHINE_START( orion128 ) |
| 262 | MDRV_MACHINE_RESET( orion128 ) |
| 263 | |
| 264 | /* video hardware */ |
| 265 | MDRV_SCREEN_ADD("main", RASTER) |
| 266 | MDRV_SCREEN_REFRESH_RATE(50) |
| 267 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 268 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 269 | MDRV_SCREEN_SIZE(384, 256) |
| 270 | MDRV_SCREEN_VISIBLE_AREA(0, 384-1, 0, 256-1) |
| 271 | |
| 272 | MDRV_PALETTE_LENGTH(18) |
| 273 | MDRV_PALETTE_INIT( orion128 ) |
| 274 | |
| 275 | |
| 276 | MDRV_VIDEO_START(orion128) |
| 277 | MDRV_VIDEO_UPDATE(orion128) |
| 278 | MACHINE_DRIVER_END |
| 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 | |
| 304 | static void orion_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info) |
| 305 | { |
| 306 | /* floppy */ |
| 307 | switch(state) |
| 308 | { |
| 309 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 310 | case MESS_DEVINFO_INT_COUNT: info->i = 4; break; |
| 311 | |
| 312 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 313 | case MESS_DEVINFO_PTR_LOAD: info->load = DEVICE_IMAGE_LOAD_NAME(orion_floppy); break; |
| 314 | |
| 315 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 316 | case MESS_DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "odi,img"); break; |
| 317 | |
| 318 | default: legacybasicdsk_device_getinfo(devclass, state, info); break; |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | SYSTEM_CONFIG_START(orion128) |
| 323 | CONFIG_RAM_DEFAULT(256 * 1024) |
| 324 | CONFIG_DEVICE(orion_floppy_getinfo); |
| 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 |
| 331 | |
| 332 | /* ROM definition */ |
| 333 | |
| 334 | ROM_START( orion128 ) |
| 335 | ROM_REGION( 0x30000, REGION_CPU1, ROMREGION_ERASEFF ) |
| 336 | ROM_SYSTEM_BIOS(0,"ver 3.2 rk","Version 3.2 rk") |
| 337 | ROMX_LOAD( "m2rk.bin", 0xf800, 0x0800, CRC(2025C234), ROM_BIOS(1)) |
| 338 | ROM_SYSTEM_BIOS(1,"ver 3.2.2","Version 3.2.2 rk") |
| 339 | ROMX_LOAD( "m2_2rk.bin", 0xf800, 0x0800, CRC(FC662351), ROM_BIOS(2)) |
| 340 | ROM_LOAD( "romdisk4.bin", 0x10000, 0xdb90, CRC(D4CB4C93)) |
| 341 | ROM_LOAD( "romdisk1.bin", 0x20000, 0xd800, CRC(61C22EEC)) |
| 342 | ROM_END |
| 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 | |
| 378 | /* Driver */ |
| 379 | |
| 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) |