src/mess/video/atarist.c
| r823 | r824 | |
| 2 | 2 | |
| 3 | 3 | TODO: |
| 4 | 4 | |
| 5 | | - lineofs |
| 6 | | - pixelofs |
| 7 | | - monochrome mode |
| 5 | - medium resolution |
| 6 | - high resolution |
| 8 | 7 | - change screen modes on the fly |
| 9 | 8 | - blitter |
| 9 | - STe pixelofs |
| 10 | 10 | |
| 11 | 11 | */ |
| 12 | 12 | |
| r823 | r824 | |
| 103 | 103 | break; |
| 104 | 104 | case ATARIST_HBSTART_PAL/4: |
| 105 | 105 | cpunum_set_input_line(0, MC68000_IRQ_2, ASSERT_LINE); |
| 106 | shifter.ofs += (shifter.lineofs * 2); // STe |
| 106 | 107 | break; |
| 107 | 108 | } |
| 108 | 109 | |
| r823 | r824 | |
| 134 | 135 | break; |
| 135 | 136 | case ATARIST_HBSTART_NTSC/4: |
| 136 | 137 | cpunum_set_input_line(0, MC68000_IRQ_2, ASSERT_LINE); |
| 138 | shifter.ofs += (shifter.lineofs * 2); // STe |
| 137 | 139 | break; |
| 138 | 140 | } |
| 139 | 141 | |
| r823 | r824 | |
| 174 | 176 | } |
| 175 | 177 | } |
| 176 | 178 | |
| 179 | /* Atari ST */ |
| 180 | |
| 177 | 181 | READ16_HANDLER( atarist_shifter_base_r ) |
| 178 | 182 | { |
| 179 | 183 | switch (offset) |
| r823 | r824 | |
| 187 | 191 | return 0; |
| 188 | 192 | } |
| 189 | 193 | |
| 194 | WRITE16_HANDLER( atarist_shifter_base_w ) |
| 195 | { |
| 196 | switch (offset) |
| 197 | { |
| 198 | case 0x00: |
| 199 | shifter.base = (shifter.base & 0x00ff00) | (data & 0x3f) << 16; |
| 200 | logerror("SHIFTER Video Base Address %06x\n", shifter.base); |
| 201 | break; |
| 202 | case 0x01: |
| 203 | shifter.base = (shifter.base & 0x3f0000) | (data & 0xff) << 8; |
| 204 | logerror("SHIFTER Video Base Address %06x\n", shifter.base); |
| 205 | break; |
| 206 | } |
| 207 | } |
| 208 | |
| 190 | 209 | READ16_HANDLER( atarist_shifter_counter_r ) |
| 191 | 210 | { |
| 192 | 211 | switch (offset) |
| r823 | r824 | |
| 207 | 226 | return shifter.sync; |
| 208 | 227 | } |
| 209 | 228 | |
| 229 | WRITE16_HANDLER( atarist_shifter_sync_w ) |
| 230 | { |
| 231 | shifter.sync = data >> 8; |
| 232 | logerror("SHIFTER Sync %x\n", shifter.sync); |
| 233 | } |
| 234 | |
| 210 | 235 | READ16_HANDLER( atarist_shifter_mode_r ) |
| 211 | 236 | { |
| 212 | 237 | return shifter.mode << 8; |
| 213 | 238 | } |
| 214 | 239 | |
| 240 | WRITE16_HANDLER( atarist_shifter_mode_w ) |
| 241 | { |
| 242 | shifter.mode = data >> 8; |
| 243 | logerror("SHIFTER Mode %x\n", shifter.mode); |
| 244 | } |
| 245 | |
| 215 | 246 | READ16_HANDLER( atarist_shifter_palette_r ) |
| 216 | 247 | { |
| 217 | 248 | return shifter.palette[offset]; |
| 218 | 249 | } |
| 250 | |
| 251 | WRITE16_HANDLER( atarist_shifter_palette_w ) |
| 252 | { |
| 253 | shifter.palette[offset] = data; |
| 254 | logerror("SHIFTER Palette[%x] = %x\n", offset, data); |
| 219 | 255 | |
| 220 | | WRITE16_HANDLER( atarist_shifter_base_w ) |
| 256 | palette_set_color_rgb(Machine, offset, pal3bit(data >> 8), pal3bit(data >> 4), pal3bit(data)); |
| 257 | } |
| 258 | |
| 259 | /* Atari STe */ |
| 260 | |
| 261 | READ16_HANDLER( atariste_shifter_base_low_r ) |
| 221 | 262 | { |
| 263 | return shifter.base & 0xfe; |
| 264 | } |
| 265 | |
| 266 | WRITE16_HANDLER( atariste_shifter_base_low_w ) |
| 267 | { |
| 268 | shifter.base = (shifter.base & 0x3fff00) | (data & 0xfe); |
| 269 | logerror("SHIFTER Video Base Address %06x\n", shifter.base); |
| 270 | } |
| 271 | |
| 272 | READ16_HANDLER( atariste_shifter_counter_r ) |
| 273 | { |
| 222 | 274 | switch (offset) |
| 223 | 275 | { |
| 224 | 276 | case 0x00: |
| 225 | | shifter.base = (shifter.base & 0x00ff00) | (data & 0x3f) << 16; |
| 226 | | logerror("SHIFTER base %06x\n", shifter.base); |
| 227 | | break; |
| 277 | return (shifter.ofs >> 16) & 0x3f; |
| 228 | 278 | case 0x01: |
| 229 | | shifter.base = (shifter.base & 0x3f0000) | (data & 0xff) << 8; |
| 230 | | logerror("SHIFTER base %06x\n", shifter.base); |
| 231 | | break; |
| 279 | return (shifter.ofs >> 8) & 0xff; |
| 280 | case 0x02: |
| 281 | return shifter.ofs & 0xfe; |
| 232 | 282 | } |
| 233 | | } |
| 234 | 283 | |
| 235 | | WRITE16_HANDLER( atarist_shifter_sync_w ) |
| 236 | | { |
| 237 | | shifter.sync = data >> 8; |
| 238 | | logerror("SHIFTER sync %x\n", shifter.sync); |
| 284 | return 0; |
| 239 | 285 | } |
| 240 | | |
| 241 | | WRITE16_HANDLER( atarist_shifter_mode_w ) |
| 242 | | { |
| 243 | | shifter.mode = data >> 8; |
| 244 | | logerror("SHIFTER mode %x\n", shifter.mode); |
| 245 | | } |
| 246 | 286 | |
| 247 | | WRITE16_HANDLER( atarist_shifter_palette_w ) |
| 287 | WRITE16_HANDLER( atariste_shifter_counter_w ) |
| 248 | 288 | { |
| 249 | | shifter.palette[offset] = data; |
| 250 | | logerror("SHIFTER palette %x = %x\n", offset, data); |
| 251 | | |
| 252 | | palette_set_color_rgb(Machine, offset, pal3bit(data >> 8), pal3bit(data >> 4), pal3bit(data)); |
| 289 | switch (offset) |
| 290 | { |
| 291 | case 0x00: |
| 292 | shifter.ofs = (shifter.ofs & 0x00fffe) | (data & 0x3f) << 16; |
| 293 | logerror("SHIFTER Video Address Counter %06x\n", shifter.ofs); |
| 294 | break; |
| 295 | case 0x01: |
| 296 | shifter.ofs = (shifter.ofs & 0x3f00fe) | (data & 0xff) << 8; |
| 297 | logerror("SHIFTER Video Address Counter %06x\n", shifter.ofs); |
| 298 | break; |
| 299 | case 0x02: |
| 300 | shifter.ofs = (shifter.ofs & 0x3fff00) | (data & 0xfe); |
| 301 | logerror("SHIFTER Video Address Counter %06x\n", shifter.ofs); |
| 302 | break; |
| 303 | } |
| 253 | 304 | } |
| 254 | 305 | |
| 255 | 306 | WRITE16_HANDLER( atariste_shifter_palette_w ) |
| r823 | r824 | |
| 259 | 310 | int b = ((data << 1) & 0x0e) | ((data >> 3) & 0x01); |
| 260 | 311 | |
| 261 | 312 | shifter.palette[offset] = data; |
| 262 | | logerror("STe SHIFTER palette %x = %x\n", offset, data); |
| 313 | logerror("SHIFTER palette %x = %x\n", offset, data); |
| 263 | 314 | |
| 264 | 315 | palette_set_color_rgb(Machine, offset, r, g, b); |
| 265 | 316 | } |
| 266 | 317 | |
| 318 | READ16_HANDLER( atariste_shifter_lineofs_r ) |
| 319 | { |
| 320 | return shifter.lineofs; |
| 321 | } |
| 322 | |
| 323 | WRITE16_HANDLER( atariste_shifter_lineofs_w ) |
| 324 | { |
| 325 | shifter.lineofs = data & 0xff; |
| 326 | logerror("SHIFTER Line Offset %x\n", shifter.lineofs); |
| 327 | } |
| 328 | |
| 329 | READ16_HANDLER( atariste_shifter_pixelofs_r ) |
| 330 | { |
| 331 | return shifter.pixelofs; |
| 332 | } |
| 333 | |
| 334 | WRITE16_HANDLER( atariste_shifter_pixelofs_w ) |
| 335 | { |
| 336 | shifter.pixelofs = data & 0x0f; |
| 337 | logerror("SHIFTER Pixel Offset %x\n", shifter.pixelofs); |
| 338 | } |
| 339 | |
| 267 | 340 | VIDEO_START( atarist ) |
| 268 | 341 | { |
| 269 | 342 | atarist_shifter_timer = mame_timer_alloc(atarist_shifter_tick); |
src/mess/drivers/atarist.c
| r823 | r824 | |
| 12 | 12 | #include "includes/serial.h" |
| 13 | 13 | #include "machine/6850acia.h" |
| 14 | 14 | #include "machine/68901mfp.h" |
| 15 | #include "machine/8530scc.h" |
| 15 | 16 | #include "machine/rp5c15.h" |
| 16 | 17 | #include "machine/wd17xx.h" |
| 17 | 18 | #include "sound/ay8910.h" |
| r823 | r824 | |
| 26 | 27 | - US keyboard layout for the special keys |
| 27 | 28 | - accurate screen timing |
| 28 | 29 | - memory shadow for boot memory check |
| 30 | - STe DMA sound and LMC1992/Microwire mixer |
| 31 | - Mega STe 8/16 MHz switch |
| 32 | - Mega STe MC68881 FPU |
| 33 | - Mega STe SCC8530 interface |
| 29 | 34 | |
| 30 | 35 | */ |
| 31 | 36 | |
| r823 | r824 | |
| 486 | 491 | AM_RANGE(0xfffc20, 0xfffc3f) AM_READWRITE(rp5c15_r, rp5c15_w) |
| 487 | 492 | ADDRESS_MAP_END |
| 488 | 493 | |
| 494 | static ADDRESS_MAP_START( ste_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 495 | AM_RANGE(0x000000, 0x000007) AM_ROM |
| 496 | AM_RANGE(0x000008, 0x1fffff) AM_RAMBANK(1) |
| 497 | AM_RANGE(0x200000, 0x3fffff) AM_RAMBANK(2) |
| 498 | AM_RANGE(0xe00000, 0xefffff) AM_ROM |
| 499 | AM_RANGE(0xfa0000, 0xfbffff) AM_ROMBANK(3) |
| 500 | AM_RANGE(0xfc0000, 0xfeffff) AM_ROM |
| 501 | AM_RANGE(0xff8000, 0xff8001) AM_READWRITE(atarist_mmu_r, atarist_mmu_w) |
| 502 | AM_RANGE(0xff8200, 0xff8203) AM_READWRITE(atarist_shifter_base_r, atarist_shifter_base_w) |
| 503 | AM_RANGE(0xff8204, 0xff8209) AM_READWRITE(atariste_shifter_counter_r, atariste_shifter_counter_w) |
| 504 | AM_RANGE(0xff820a, 0xff820b) AM_READWRITE(atarist_shifter_sync_r, atarist_shifter_sync_w) |
| 505 | AM_RANGE(0xff820c, 0xff820d) AM_READWRITE(atariste_shifter_base_low_r, atariste_shifter_base_low_w) |
| 506 | AM_RANGE(0xff820e, 0xff820f) AM_READWRITE(atariste_shifter_lineofs_r, atariste_shifter_lineofs_w) |
| 507 | AM_RANGE(0xff8240, 0xff825f) AM_READWRITE(atarist_shifter_palette_r, atariste_shifter_palette_w) |
| 508 | AM_RANGE(0xff8260, 0xff8261) AM_READWRITE(atarist_shifter_mode_r, atarist_shifter_mode_w) |
| 509 | AM_RANGE(0xff8264, 0xff8265) AM_READWRITE(atariste_shifter_pixelofs_r, atariste_shifter_pixelofs_w) |
| 510 | AM_RANGE(0xff8604, 0xff8605) AM_READWRITE(atarist_fdc_data_r, atarist_fdc_data_w) |
| 511 | AM_RANGE(0xff8606, 0xff8607) AM_READWRITE(atarist_fdc_dma_status_r, atarist_fdc_dma_mode_w) |
| 512 | AM_RANGE(0xff8608, 0xff860d) AM_READWRITE(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w) |
| 513 | AM_RANGE(0xff8800, 0xff8801) AM_READWRITE(AY8910_read_port_0_msb_r, AY8910_control_port_0_msb_w) |
| 514 | AM_RANGE(0xff8802, 0xff8803) AM_WRITE(AY8910_write_port_0_msb_w) |
| 515 | // AM_RANGE(0xff8900, 0xff8901) AM_READWRITE(atariste_sound_dma_control_r, atariste_sound_dma_control_w) |
| 516 | // AM_RANGE(0xff8902, 0xff8906) AM_READWRITE(atariste_sound_dma_base_r, atariste_sound_dma_base_w) |
| 517 | // AM_RANGE(0xff8908, 0xff890d) AM_READ(atariste_sound_dma_counter_r) |
| 518 | // AM_RANGE(0xff890e, 0xff8912) AM_READWRITE(atariste_sound_dma_end_r, atariste_sound_dma_end_w) |
| 519 | // AM_RANGE(0xff8920, 0xff8920) AM_READWRITE(atariste_sound_mode_r, atariste_sound_mode_w) |
| 520 | // AM_RANGE(0xff8922, 0xff8923) AM_READWRITE(atariste_mixer_data_r, atariste_mixer_data_w) |
| 521 | // AM_RANGE(0xff8924, 0xff8925) AM_READWRITE(atariste_mixer_mask_r, atariste_mixer_mask_w) |
| 522 | // AM_RANGE(0xff8a00, 0xff8a3f) AM_READWRITE(atariste_blitter_r, atariste_blitter_w) |
| 523 | AM_RANGE(0xff9200, 0xff9201) AM_READ(port_tag_to_handler16("JOY0E")) |
| 524 | AM_RANGE(0xff9202, 0xff9203) AM_READ(port_tag_to_handler16("JOY1E")) |
| 525 | AM_RANGE(0xff9210, 0xff9211) AM_READ(port_tag_to_handler16("PADDLE0X")) |
| 526 | AM_RANGE(0xff9212, 0xff9213) AM_READ(port_tag_to_handler16("PADDLE0Y")) |
| 527 | AM_RANGE(0xff9214, 0xff9215) AM_READ(port_tag_to_handler16("PADDLE1X")) |
| 528 | AM_RANGE(0xff9216, 0xff9217) AM_READ(port_tag_to_handler16("PADDLE1Y")) |
| 529 | AM_RANGE(0xff9220, 0xff9221) AM_READ(port_tag_to_handler16("GUNX")) |
| 530 | AM_RANGE(0xff9222, 0xff9223) AM_READ(port_tag_to_handler16("GUNY")) |
| 531 | AM_RANGE(0xfffa00, 0xfffa2f) AM_READWRITE(mfp68901_0_register16_r, mfp68901_0_register_lsb_w) |
| 532 | AM_RANGE(0xfffc00, 0xfffc01) AM_READWRITE(acia6850_0_stat_msb_r, acia6850_0_ctrl_msb_w) |
| 533 | AM_RANGE(0xfffc02, 0xfffc03) AM_READWRITE(acia6850_0_data_msb_r, acia6850_0_data_msb_w) |
| 534 | AM_RANGE(0xfffc04, 0xfffc05) AM_READWRITE(acia6850_1_stat_msb_r, acia6850_1_ctrl_msb_w) |
| 535 | AM_RANGE(0xfffc06, 0xfffc07) AM_READWRITE(acia6850_1_data_msb_r, acia6850_1_data_msb_w) |
| 536 | ADDRESS_MAP_END |
| 537 | |
| 538 | static ADDRESS_MAP_START( megaste_map, ADDRESS_SPACE_PROGRAM, 16 ) |
| 539 | AM_RANGE(0x000000, 0x000007) AM_ROM |
| 540 | AM_RANGE(0x000008, 0x1fffff) AM_RAMBANK(1) |
| 541 | AM_RANGE(0x200000, 0x3fffff) AM_RAMBANK(2) |
| 542 | AM_RANGE(0xe00000, 0xefffff) AM_ROM |
| 543 | AM_RANGE(0xfa0000, 0xfbffff) AM_ROMBANK(3) |
| 544 | AM_RANGE(0xfc0000, 0xfeffff) AM_ROM |
| 545 | AM_RANGE(0xff8000, 0xff8007) AM_READWRITE(atarist_mmu_r, atarist_mmu_w) |
| 546 | AM_RANGE(0xff8200, 0xff8203) AM_READWRITE(atarist_shifter_base_r, atarist_shifter_base_w) |
| 547 | AM_RANGE(0xff8204, 0xff8209) AM_READWRITE(atariste_shifter_counter_r, atariste_shifter_counter_w) |
| 548 | AM_RANGE(0xff820a, 0xff820b) AM_READWRITE(atarist_shifter_sync_r, atarist_shifter_sync_w) |
| 549 | AM_RANGE(0xff820c, 0xff820d) AM_READWRITE(atariste_shifter_base_low_r, atariste_shifter_base_low_w) |
| 550 | AM_RANGE(0xff820e, 0xff820f) AM_READWRITE(atariste_shifter_lineofs_r, atariste_shifter_lineofs_w) |
| 551 | AM_RANGE(0xff8240, 0xff825f) AM_READWRITE(atarist_shifter_palette_r, atariste_shifter_palette_w) |
| 552 | AM_RANGE(0xff8260, 0xff8261) AM_READWRITE(atarist_shifter_mode_r, atarist_shifter_mode_w) |
| 553 | AM_RANGE(0xff8264, 0xff8265) AM_READWRITE(atariste_shifter_pixelofs_r, atariste_shifter_pixelofs_w) |
| 554 | AM_RANGE(0xff8604, 0xff8605) AM_READWRITE(atarist_fdc_data_r, atarist_fdc_data_w) |
| 555 | AM_RANGE(0xff8606, 0xff8607) AM_READWRITE(atarist_fdc_dma_status_r, atarist_fdc_dma_mode_w) |
| 556 | AM_RANGE(0xff8608, 0xff860d) AM_READWRITE(atarist_fdc_dma_base_r, atarist_fdc_dma_base_w) |
| 557 | AM_RANGE(0xff8800, 0xff8801) AM_READWRITE(AY8910_read_port_0_msb_r, AY8910_control_port_0_msb_w) |
| 558 | AM_RANGE(0xff8802, 0xff8803) AM_WRITE(AY8910_write_port_0_msb_w) |
| 559 | // AM_RANGE(0xff8900, 0xff8901) AM_READWRITE(atariste_sound_dma_control_r, atariste_sound_dma_control_w) |
| 560 | // AM_RANGE(0xff8902, 0xff8906) AM_READWRITE(atariste_sound_dma_base_r, atariste_sound_dma_base_w) |
| 561 | // AM_RANGE(0xff8908, 0xff890d) AM_READ(atariste_sound_dma_counter_r) |
| 562 | // AM_RANGE(0xff890e, 0xff8912) AM_READWRITE(atariste_sound_dma_end_r, atariste_sound_dma_end_w) |
| 563 | // AM_RANGE(0xff8920, 0xff8920) AM_READWRITE(atariste_sound_mode_r, atariste_sound_mode_w) |
| 564 | // AM_RANGE(0xff8922, 0xff8923) AM_READWRITE(atariste_mixer_data_r, atariste_mixer_data_w) |
| 565 | // AM_RANGE(0xff8924, 0xff8925) AM_READWRITE(atariste_mixer_mask_r, atariste_mixer_mask_w) |
| 566 | // AM_RANGE(0xff8a00, 0xff8a3f) AM_READWRITE(atariste_blitter_r, atariste_blitter_w) |
| 567 | // AM_RANGE(0xff8e20, 0xff8e21) AM_READWRITE(megaste_cache_r, megaste_cache_w) |
| 568 | AM_RANGE(0xfffa00, 0xfffa3f) AM_READWRITE(mfp68901_0_register16_r, mfp68901_0_register_msb_w) |
| 569 | // AM_RANGE(0xfffa40, 0xfffa5f) AM_READWRITE(megaste_fpu_r, megaste_fpu_w) |
| 570 | // AM_RANGE(0xff8c80, 0xff8c87) AM_READWRITE(megaste_scc8530_r, megaste_scc8530_w) |
| 571 | AM_RANGE(0xfffc00, 0xfffc01) AM_READWRITE(acia6850_0_stat_msb_r, acia6850_0_ctrl_msb_w) |
| 572 | AM_RANGE(0xfffc02, 0xfffc03) AM_READWRITE(acia6850_0_data_msb_r, acia6850_0_data_msb_w) |
| 573 | AM_RANGE(0xfffc04, 0xfffc05) AM_READWRITE(acia6850_1_stat_msb_r, acia6850_1_ctrl_msb_w) |
| 574 | AM_RANGE(0xfffc06, 0xfffc07) AM_READWRITE(acia6850_1_data_msb_r, acia6850_1_data_msb_w) |
| 575 | AM_RANGE(0xfffc20, 0xfffc3f) AM_READWRITE(rp5c15_r, rp5c15_w) |
| 576 | ADDRESS_MAP_END |
| 577 | |
| 489 | 578 | /* Input Ports */ |
| 490 | 579 | |
| 491 | 580 | INPUT_PORTS_START( ikbd ) |
| r823 | r824 | |
| 652 | 741 | PORT_INCLUDE( ikbd ) |
| 653 | 742 | INPUT_PORTS_END |
| 654 | 743 | |
| 655 | | INPUT_PORTS_START( joystick_ste ) |
| 656 | | PORT_START_TAG("JOY0") |
| 744 | INPUT_PORTS_START( atariste ) |
| 745 | PORT_INCLUDE( atarist ) |
| 746 | |
| 747 | PORT_START_TAG("JOY0E") |
| 657 | 748 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) |
| 658 | 749 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3) |
| 659 | 750 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) |
| 660 | 751 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(4) |
| 661 | 752 | PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 662 | 753 | |
| 663 | | PORT_START_TAG("JOY1") |
| 754 | PORT_START_TAG("JOY1E") |
| 664 | 755 | PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_8WAY |
| 665 | 756 | PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_8WAY |
| 666 | 757 | PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_8WAY |
| r823 | r824 | |
| 882 | 973 | rp5c15_init(&rtc_intf); |
| 883 | 974 | } |
| 884 | 975 | |
| 976 | static MACHINE_START( atariste ) |
| 977 | { |
| 978 | machine_start_atarist(machine); |
| 979 | } |
| 980 | |
| 981 | static MACHINE_START( megaste ) |
| 982 | { |
| 983 | machine_start_atariste(machine); |
| 984 | rp5c15_init(&rtc_intf); |
| 985 | } |
| 986 | |
| 885 | 987 | static MACHINE_DRIVER_START( atarist ) |
| 886 | 988 | // basic machine hardware |
| 887 | 989 | MDRV_CPU_ADD_TAG("main", M68000, Y2/4) |
| r823 | r824 | |
| 919 | 1021 | MDRV_MACHINE_START(megast) |
| 920 | 1022 | MACHINE_DRIVER_END |
| 921 | 1023 | |
| 1024 | static MACHINE_DRIVER_START( atariste ) |
| 1025 | MDRV_IMPORT_FROM(atarist) |
| 1026 | |
| 1027 | MDRV_CPU_MODIFY("main") |
| 1028 | MDRV_CPU_PROGRAM_MAP(ste_map, 0) |
| 1029 | |
| 1030 | MDRV_PALETTE_LENGTH(512) |
| 1031 | // stereo sound |
| 1032 | |
| 1033 | MDRV_MACHINE_START(atariste) |
| 1034 | MACHINE_DRIVER_END |
| 1035 | |
| 1036 | static MACHINE_DRIVER_START( megaste ) |
| 1037 | MDRV_IMPORT_FROM(atariste) |
| 1038 | |
| 1039 | MDRV_CPU_MODIFY("main") |
| 1040 | MDRV_CPU_PROGRAM_MAP(megaste_map, 0) |
| 1041 | |
| 1042 | MDRV_MACHINE_START(megaste) |
| 1043 | MACHINE_DRIVER_END |
| 1044 | |
| 922 | 1045 | /* ROMs */ |
| 923 | 1046 | |
| 924 | 1047 | ROM_START( atarist ) |
| r823 | r824 | |
| 1119 | 1242 | } |
| 1120 | 1243 | } |
| 1121 | 1244 | |
| 1245 | static void megaste_serial_getinfo(const device_class *devclass, UINT32 state, union devinfo *info) |
| 1246 | { |
| 1247 | /* serial */ |
| 1248 | switch(state) |
| 1249 | { |
| 1250 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 1251 | case DEVINFO_INT_TYPE: info->i = IO_SERIAL; break; |
| 1252 | case DEVINFO_INT_COUNT: info->i = 2; break; |
| 1253 | |
| 1254 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 1255 | case DEVINFO_PTR_INIT: info->init = serial_device_init; break; |
| 1256 | case DEVINFO_PTR_LOAD: info->load = device_load_atarist_serial; break; |
| 1257 | case DEVINFO_PTR_UNLOAD: info->unload = serial_device_unload; break; |
| 1258 | |
| 1259 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 1260 | case DEVINFO_STR_FILE_EXTENSIONS: strcpy(info->s = device_temp_str(), "txt"); break; |
| 1261 | } |
| 1262 | } |
| 1263 | |
| 1122 | 1264 | static DEVICE_LOAD( atarist_cart ) |
| 1123 | 1265 | { |
| 1124 | 1266 | UINT8 *ptr = ((UINT8 *)memory_region(REGION_CPU1)) + 0xfa0000; |
| r823 | r824 | |
| 1177 | 1319 | CONFIG_DEVICE(atarist_cartslot_getinfo) |
| 1178 | 1320 | SYSTEM_CONFIG_END |
| 1179 | 1321 | |
| 1322 | SYSTEM_CONFIG_START( atariste ) |
| 1323 | CONFIG_RAM_DEFAULT(1024 * 1024) // 1040STe |
| 1324 | CONFIG_RAM ( 512 * 1024) // 520STe |
| 1325 | CONFIG_DEVICE(atarist_floppy_getinfo) |
| 1326 | CONFIG_DEVICE(atarist_printer_getinfo) |
| 1327 | CONFIG_DEVICE(atarist_serial_getinfo) |
| 1328 | CONFIG_DEVICE(atarist_cartslot_getinfo) |
| 1329 | SYSTEM_CONFIG_END |
| 1330 | |
| 1331 | SYSTEM_CONFIG_START( megaste ) |
| 1332 | CONFIG_RAM_DEFAULT(4096 * 1024) // Mega STe 4 |
| 1333 | CONFIG_RAM (2048 * 1024) // Mega STe 2 |
| 1334 | CONFIG_RAM (1024 * 1024) // Mega STe 1 |
| 1335 | CONFIG_DEVICE(atarist_floppy_getinfo) |
| 1336 | CONFIG_DEVICE(atarist_printer_getinfo) |
| 1337 | CONFIG_DEVICE(megaste_serial_getinfo) |
| 1338 | CONFIG_DEVICE(atarist_cartslot_getinfo) |
| 1339 | // LAN |
| 1340 | SYSTEM_CONFIG_END |
| 1341 | |
| 1180 | 1342 | /* System Drivers */ |
| 1181 | 1343 | |
| 1182 | 1344 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| r823 | r824 | |
| 1185 | 1347 | /* |
| 1186 | 1348 | COMP( 1989, stacy, atarist, 0, stacy, stacy, 0, stacy, "Atari", "STacy", GAME_NOT_WORKING ) |
| 1187 | 1349 | COMP( 1992, stbook, atarist, 0, stbook, stbook, 0, stbook, "Atari", "ST Book", GAME_NOT_WORKING ) |
| 1350 | */ |
| 1188 | 1351 | COMP( 1989, atariste, 0, 0, atariste, atariste, 0, atariste, "Atari", "STE", GAME_NOT_WORKING ) |
| 1189 | 1352 | COMP( 1991, megaste, atariste, 0, megaste, atariste, 0, megaste, "Atari", "Mega STE", GAME_NOT_WORKING ) |
| 1353 | /* |
| 1190 | 1354 | COMP( 1990, tt030, 0, 0, tt030, tt030, 0, tt030, "Atari", "TT030", GAME_NOT_WORKING ) |
| 1191 | 1355 | COMP( 1992, falcon, 0, 0, falcon, falcon, 0, falcon, "Atari", "Falcon030", GAME_NOT_WORKING ) |
| 1192 | 1356 | */ |