src/mess/drivers/super80.c
| r4334 | r4335 | |
| 11 | 11 | #include "devices/z80bin.h" |
| 12 | 12 | #include "sound/speaker.h" |
| 13 | 13 | #include "machine/ctronics.h" |
| 14 | | #include "devices/printer.h" |
| 15 | 14 | |
| 15 | |
| 16 | 16 | static UINT8 super80_mhz=2; /* state of bit 2 of port F0 */ |
| 17 | 17 | static UINT16 vidpg=0xfe00; /* Home position of video page being displayed */ |
| 18 | 18 | static UINT8 int_sw; /* internal 1 MHz flipflop */ |
| r4334 | r4335 | |
| 88 | 88 | |
| 89 | 89 | static void palette_set_colors_rgb(running_machine *machine, const UINT8 *colors) |
| 90 | 90 | { |
| 91 | | UINT8 r, b, g, color_count = 16; |
| 91 | UINT8 r, b, g, color_count = 16; |
| 92 | 92 | |
| 93 | 93 | while (color_count--) |
| 94 | 94 | { |
| r4334 | r4335 | |
| 102 | 102 | int i; |
| 103 | 103 | machine->colortable = colortable_alloc(machine, 16); |
| 104 | 104 | palette_set_colors_rgb(machine, super80_rgb_palette); |
| 105 | | |
| 105 | |
| 106 | 106 | for( i = 0; i < 256; i++ ) |
| 107 | 107 | { |
| 108 | 108 | colortable_entry_set_value(machine->colortable, i*2, i>>4); |
| r4334 | r4335 | |
| 190 | 190 | if (curs_type > 1) for (i = 0;i < ARRAY_LENGTH(mc6845_cursor);i++) mc6845_cursor[i]=0xff; // turn on full cursor |
| 191 | 191 | |
| 192 | 192 | if (curs_type == 1) for (i = r10;i < r11;i++) mc6845_cursor[i]=0xff; // for each line that should show, turn on that scan line |
| 193 | | |
| 193 | |
| 194 | 194 | if (curs_type == 3) for (i = r11; i < r10;i++) mc6845_cursor[i]=0; // now take a bite out of the middle |
| 195 | 195 | } |
| 196 | 196 | |
| r4334 | r4335 | |
| 267 | 267 | col = 15; /* b&w */ |
| 268 | 268 | else |
| 269 | 269 | col = 5; /* green */ |
| 270 | | } |
| 270 | } |
| 271 | 271 | |
| 272 | 272 | /* display the picture */ |
| 273 | 273 | for (y=0; y<16; y++) |
| r4334 | r4335 | |
| 1102 | 1102 | |
| 1103 | 1103 | /* cassette */ |
| 1104 | 1104 | MDRV_CASSETTE_ADD( "cassette", super80_cassette_config ) |
| 1105 | | |
| 1105 | |
| 1106 | 1106 | /* cartridge */ |
| 1107 | 1107 | MDRV_IMPORT_FROM(super80_cartslot) |
| 1108 | 1108 | MACHINE_DRIVER_END |
src/mess/drivers/exidy.c
| r4334 | r4335 | |
| 147 | 147 | #include "devices/cassette.h" |
| 148 | 148 | #include "devices/snapquik.h" |
| 149 | 149 | #include "devices/cartslot.h" |
| 150 | | #include "devices/printer.h" |
| 151 | 150 | #include "devices/z80bin.h" |
| 152 | 151 | #include "machine/ay31015.h" |
| 153 | 152 | |
| r4334 | r4335 | |
| 542 | 541 | - tied high, allowing PARIN and PAROUT bios routines to run */ |
| 543 | 542 | |
| 544 | 543 | UINT8 data = 0xc0; |
| 545 | | static const char *const keynames[] = { "LINE0", "LINE1", "LINE2", "LINE3", "LINE4", "LINE5", "LINE6", "LINE7", |
| 544 | static const char *const keynames[] = { "LINE0", "LINE1", "LINE2", "LINE3", "LINE4", "LINE5", "LINE6", "LINE7", |
| 546 | 545 | "LINE8", "LINE9", "LINE10", "LINE11", "LINE12", "LINE13", "LINE14", "LINE15" }; |
| 547 | 546 | |
| 548 | 547 | /* bit 5 - vsync (inverted) */ |
| r4334 | r4335 | |
| 802 | 801 | |
| 803 | 802 | MDRV_CASSETTE_ADD( "cassette1", exidy_cassette_config ) |
| 804 | 803 | MDRV_CASSETTE_ADD( "cassette2", exidy_cassette_config ) |
| 805 | | |
| 804 | |
| 806 | 805 | MDRV_WD179X_ADD("wd179x", default_wd17xx_interface ) |
| 807 | 806 | |
| 808 | 807 | /* cartridge */ |