src/mess/includes/vc1541.h
| r1450 | r1451 | |
| 44 | 44 | void c1551_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 45 | 45 | void c1571_device_getinfo(const device_class *devclass, UINT32 state, union devinfo *info); |
| 46 | 46 | |
| 47 | | extern MACHINE_DRIVER_EXTERN( cpu_vc1540 ); |
| 48 | | extern MACHINE_DRIVER_EXTERN( cpu_vc1541 ); |
| 49 | | extern MACHINE_DRIVER_EXTERN( cpu_c2031 ); |
| 50 | | extern MACHINE_DRIVER_EXTERN( cpu_dolphin ); |
| 51 | | extern MACHINE_DRIVER_EXTERN( cpu_c1551 ); |
| 52 | | extern MACHINE_DRIVER_EXTERN( cpu_c1571 ); |
| 47 | MACHINE_DRIVER_EXTERN( cpu_vc1540 ); |
| 48 | MACHINE_DRIVER_EXTERN( cpu_vc1541 ); |
| 49 | MACHINE_DRIVER_EXTERN( cpu_c2031 ); |
| 50 | MACHINE_DRIVER_EXTERN( cpu_dolphin ); |
| 51 | MACHINE_DRIVER_EXTERN( cpu_c1551 ); |
| 52 | MACHINE_DRIVER_EXTERN( cpu_c1571 ); |
| 53 | 53 | |
| 54 | 54 | #define VC1540_ROM(cpu) \ |
| 55 | 55 | ROM_REGION(0x10000,cpu,0) \ |
src/mess/video/i82720.c
| r1450 | r1451 | |
| 1400 | 1400 | 255, 255, 255 |
| 1401 | 1401 | }; |
| 1402 | 1402 | |
| 1403 | | static PALETTE_INIT( compis_gdc ) |
| 1403 | PALETTE_INIT( compis_gdc ) |
| 1404 | 1404 | { |
| 1405 | 1405 | palette_set_colors_rgb(machine, 0, COMPIS_palette, COMPIS_PALETTE_SIZE); |
| 1406 | 1406 | } |
| r1450 | r1451 | |
| 1470 | 1470 | compis_gdc_start(&sIntf); |
| 1471 | 1471 | } |
| 1472 | 1472 | |
| 1473 | | void mdrv_compisgdc(machine_config *machine, |
| 1474 | | const compis_gdc_interface *intf) |
| 1475 | | |
| 1473 | void compis_init(const compis_gdc_interface *intf) |
| 1476 | 1474 | { |
| 1477 | | int scr_width = (intf->mode == GDC_MODE_UHRG) ? 1280 : 640; |
| 1478 | | int scr_height = (intf->mode == GDC_MODE_UHRG) ? 800 : 400; |
| 1479 | | screen_config *screen = &machine->screen[0]; |
| 1480 | | |
| 1481 | 1475 | sIntf = *intf; |
| 1482 | | |
| 1483 | | /* video hardware */ |
| 1484 | | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_TYPE_RASTER) |
| 1485 | | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 1486 | | MDRV_SCREEN_SIZE(scr_width, scr_height) |
| 1487 | | MDRV_SCREEN_VISIBLE_AREA(0, scr_width-1, 0, scr_height-1) |
| 1488 | | MDRV_PALETTE_LENGTH(COMPIS_PALETTE_SIZE) |
| 1489 | | MDRV_COLORTABLE_LENGTH(0) |
| 1490 | | MDRV_PALETTE_INIT(compis_gdc) |
| 1491 | | |
| 1492 | | MDRV_VIDEO_START(compis_gdc) |
| 1493 | | MDRV_VIDEO_UPDATE(compis_gdc) |
| 1494 | 1476 | } |
| 1495 | | |
src/mess/video/i82720.h
| r1450 | r1451 | |
| 27 | 27 | /* |
| 28 | 28 | ** Call this function to render the screen. |
| 29 | 29 | */ |
| 30 | PALETTE_INIT( compis_gdc ); |
| 30 | 31 | VIDEO_START ( compis_gdc ); |
| 31 | 32 | VIDEO_UPDATE( compis_gdc ); |
| 32 | 33 | /* |
| r1450 | r1451 | |
| 41 | 42 | /* |
| 42 | 43 | ** MachineDriver video declarations for the i82720 chip |
| 43 | 44 | */ |
| 44 | | typedef struct compis_gdc_interface |
| 45 | typedef struct _compis_gdc_interface |
| 45 | 46 | { |
| 46 | 47 | compis_gdc_modes mode; |
| 47 | 48 | UINT32 vramsize; |
| 48 | 49 | } compis_gdc_interface; |
| 49 | 50 | |
| 50 | | extern void mdrv_compisgdc(machine_config *machine, |
| 51 | | const compis_gdc_interface *intf); |
| 52 | | |
| 53 | | #define MDRV_COMPISGDC(intf) mdrv_compisgdc(machine, (intf)); |
| 51 | void compis_init(const compis_gdc_interface *intf); |
src/mess/machine/compis.c
| r1450 | r1451 | |
| 15 | 15 | #include "driver.h" |
| 16 | 16 | #include "cpu/i86/i186intf.h" |
| 17 | 17 | #include "video/generic.h" |
| 18 | #include "video/i82720.h" |
| 18 | 19 | #include "machine/8255ppi.h" |
| 19 | 20 | #include "machine/mm58274c.h" |
| 20 | 21 | #include "machine/pic8259.h" |
| r1450 | r1451 | |
| 1556 | 1557 | return pic8259_acknowledge(0); |
| 1557 | 1558 | } |
| 1558 | 1559 | |
| 1560 | static const compis_gdc_interface i82720_interface = |
| 1561 | { |
| 1562 | GDC_MODE_HRG, |
| 1563 | 0x8000 |
| 1564 | }; |
| 1565 | |
| 1559 | 1566 | DRIVER_INIT( compis ) |
| 1560 | 1567 | { |
| 1568 | compis_init( &i82720_interface ); |
| 1561 | 1569 | cpunum_set_irq_callback(0, compis_irq_callback); |
| 1562 | 1570 | pic8259_init(2, compis_pic_set_int_line); |
| 1563 | 1571 | memset (&compis, 0, sizeof (compis) ); |
src/mess/drivers/tm990189.c
| r1450 | r1451 | |
| 317 | 317 | return 0; |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | static VIDEO_START( tm990_189_v ) |
| 321 | { |
| 322 | /* NPW 27-Feb-2006 - ewwww gross!!! maybe this can be fixed when |
| 323 | * multimonitor support is added?*/ |
| 324 | LED_display_window_left = machine->screen[0].visarea.min_x; |
| 325 | LED_display_window_top = machine->screen[0].visarea.max_y; |
| 326 | LED_display_window_width = machine->screen[0].visarea.max_x - machine->screen[0].visarea.min_x; |
| 327 | LED_display_window_height = 32; |
| 328 | |
| 329 | machine->screen[0].visarea.max_y += 32; |
| 330 | machine->screen[0].height += 32; |
| 331 | } |
| 332 | |
| 320 | 333 | static VIDEO_UPDATE( tm990_189_v ) |
| 321 | 334 | { |
| 322 | 335 | video_update_tms9928a(machine, screen, bitmap, cliprect); |
| r1450 | r1451 | |
| 832 | 845 | |
| 833 | 846 | MDRV_IMPORT_FROM(tms9928a) |
| 834 | 847 | MDRV_VIDEO_EOF(tm990_189) |
| 848 | MDRV_VIDEO_START(tm990_189_v) |
| 835 | 849 | MDRV_VIDEO_UPDATE(tm990_189_v) |
| 836 | 850 | |
| 837 | | /* NPW 27-Feb-2006 - ewwww gross!!! maybe this can be fixed when |
| 838 | | * multimonitor support is added?*/ |
| 839 | | LED_display_window_left = machine->screen[0].defstate.visarea.min_x; |
| 840 | | LED_display_window_top = machine->screen[0].defstate.visarea.max_y; |
| 841 | | LED_display_window_width = machine->screen[0].defstate.visarea.max_x - machine->screen[0].defstate.visarea.min_x; |
| 842 | | LED_display_window_height = 32; |
| 843 | | machine->screen[0].defstate.visarea.max_y += 32; |
| 844 | | machine->screen[0].defstate.height += 32; |
| 845 | | |
| 846 | 851 | /* sound hardware */ |
| 847 | 852 | /* one two-level buzzer */ |
| 848 | 853 | MDRV_SPEAKER_STANDARD_MONO("mono") |
src/mess/drivers/atarist.c
| r1450 | r1451 | |
| 933 | 933 | AM_RANGE(0xff8a38, 0xff8a39) AM_READWRITE(atarist_blitter_count_y_r, atarist_blitter_count_y_w) |
| 934 | 934 | AM_RANGE(0xff8a3a, 0xff8a3b) AM_READWRITE(atarist_blitter_op_r, atarist_blitter_op_w) |
| 935 | 935 | AM_RANGE(0xff8a3c, 0xff8a3d) AM_READWRITE(atarist_blitter_ctrl_r, atarist_blitter_ctrl_w) |
| 936 | | AM_RANGE(0xff9200, 0xff9201) AM_READ(port_tag_to_handler16("JOY0")) |
| 937 | | AM_RANGE(0xff9202, 0xff9203) AM_READ(port_tag_to_handler16("JOY1")) |
| 938 | | AM_RANGE(0xff9210, 0xff9211) AM_READ(port_tag_to_handler16("PADDLE0X")) |
| 939 | | AM_RANGE(0xff9212, 0xff9213) AM_READ(port_tag_to_handler16("PADDLE0Y")) |
| 940 | | AM_RANGE(0xff9214, 0xff9215) AM_READ(port_tag_to_handler16("PADDLE1X")) |
| 941 | | AM_RANGE(0xff9216, 0xff9217) AM_READ(port_tag_to_handler16("PADDLE1Y")) |
| 942 | | AM_RANGE(0xff9220, 0xff9221) AM_READ(port_tag_to_handler16("GUNX")) |
| 943 | | AM_RANGE(0xff9222, 0xff9223) AM_READ(port_tag_to_handler16("GUNY")) |
| 936 | AM_RANGE(0xff9200, 0xff9201) AM_READ_PORT("JOY0") |
| 937 | AM_RANGE(0xff9202, 0xff9203) AM_READ_PORT("JOY1") |
| 938 | AM_RANGE(0xff9210, 0xff9211) AM_READ_PORT("PADDLE0X") |
| 939 | AM_RANGE(0xff9212, 0xff9213) AM_READ_PORT("PADDLE0Y") |
| 940 | AM_RANGE(0xff9214, 0xff9215) AM_READ_PORT("PADDLE1X") |
| 941 | AM_RANGE(0xff9216, 0xff9217) AM_READ_PORT("PADDLE1Y") |
| 942 | AM_RANGE(0xff9220, 0xff9221) AM_READ_PORT("GUNX") |
| 943 | AM_RANGE(0xff9222, 0xff9223) AM_READ_PORT("GUNY") |
| 944 | 944 | AM_RANGE(0xfffa00, 0xfffa2f) AM_READWRITE(mfp68901_0_register_lsb_r, mfp68901_0_register_lsb_w) |
| 945 | 945 | AM_RANGE(0xfffc00, 0xfffc01) AM_READWRITE(acia6850_0_stat_msb_r, acia6850_0_ctrl_msb_w) |
| 946 | 946 | AM_RANGE(0xfffc02, 0xfffc03) AM_READWRITE(acia6850_0_data_msb_r, acia6850_0_data_msb_w) |
src/mess/drivers/amiga.c
| r1450 | r1451 | |
| 78 | 78 | static ADDRESS_MAP_START(cdtv_mem, ADDRESS_SPACE_PROGRAM, 16) |
| 79 | 79 | AM_RANGE(0x000000, 0x0fffff) AM_RAMBANK(1) AM_BASE(&amiga_chip_ram) AM_SIZE(&amiga_chip_ram_size) |
| 80 | 80 | AM_RANGE(0xbfd000, 0xbfefff) AM_READWRITE(amiga_cia_r, amiga_cia_w) |
| 81 | | AM_RANGE(0xdc0000, 0xdc003f) AM_READWRITE(amiga_clock_r, amiga_clock_w); |
| 81 | AM_RANGE(0xdc0000, 0xdc003f) AM_READWRITE(amiga_clock_r, amiga_clock_w) |
| 82 | 82 | AM_RANGE(0xdc8000, 0xdc87ff) AM_RAM AM_BASE(&generic_nvram16) AM_SIZE(&generic_nvram_size) |
| 83 | 83 | AM_RANGE(0xdf0000, 0xdfffff) AM_READWRITE(amiga_custom_r, amiga_custom_w) AM_BASE(&amiga_custom_regs) /* Custom Chips */ |
| 84 | 84 | AM_RANGE(0xe80000, 0xe8ffff) AM_READWRITE(amiga_autoconfig_r, amiga_autoconfig_w) |
src/mess/drivers/compis.c
| r1450 | r1451 | |
| 202 | 202 | |
| 203 | 203 | static const unsigned i86_address_mask = 0x000fffff; |
| 204 | 204 | |
| 205 | | static const compis_gdc_interface i82720_interface = |
| 206 | | { |
| 207 | | GDC_MODE_HRG, |
| 208 | | 0x8000 |
| 209 | | }; |
| 210 | | |
| 211 | 205 | static MACHINE_DRIVER_START( compis ) |
| 212 | 206 | /* basic machine hardware */ |
| 213 | 207 | MDRV_CPU_ADD_TAG("main", I80186, 8000000) /* 8 MHz */ |
| r1450 | r1451 | |
| 222 | 216 | |
| 223 | 217 | MDRV_MACHINE_RESET(compis) |
| 224 | 218 | |
| 225 | | MDRV_COMPISGDC( &i82720_interface ) |
| 219 | /* video hardware */ |
| 220 | MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK | VIDEO_TYPE_RASTER) |
| 221 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 222 | MDRV_SCREEN_SIZE(640, 480) |
| 223 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 224 | MDRV_PALETTE_LENGTH(COMPIS_PALETTE_SIZE) |
| 225 | MDRV_COLORTABLE_LENGTH(0) |
| 226 | MDRV_PALETTE_INIT(compis_gdc) |
| 226 | 227 | |
| 228 | MDRV_VIDEO_START(compis_gdc) |
| 229 | MDRV_VIDEO_UPDATE(compis_gdc) |
| 230 | |
| 227 | 231 | MACHINE_DRIVER_END |
| 228 | 232 | |
| 229 | 233 | /*************************************************************************** |
docs/messnew.txt
| r1450 | r1451 | |
| 75 | 75 | |
| 76 | 76 | - Fixed M65C02 optimization. [Peter Trauner] |
| 77 | 77 | |
| 78 | | - Staticization, constification, header file, "Machine variable", gfxdecode and |
| 79 | | legacy cleanups. [Atari Ace] |
| 78 | - Staticization, constification, header file, "Machine variable", gfxdecode, |
| 79 | Machine driver and legacy cleanups. [Atari Ace] |
| 80 | 80 | |
| 81 | 81 | |
| 82 | 82 | |