src/mess/video/super80.c
| r4942 | r4943 | |
| 102 | 102 | UINT16 sy=0,ma=vidpg,x; |
| 103 | 103 | UINT8 *RAM = memory_region(screen->machine, "maincpu"); |
| 104 | 104 | |
| 105 | output_set_value("cass_led",(super80_shared & 0x20) ? 1 : 0); |
| 106 | |
| 105 | 107 | if ((super80_shared & 4) || (!(input_port_read(screen->machine, "CONFIG") & 4))) /* bit 2 of port F0 is high, OR user turned on config switch */ |
| 106 | 108 | screen_on++; |
| 107 | 109 | |
| r4942 | r4943 | |
| 141 | 143 | UINT16 sy=0,ma=vidpg,x; |
| 142 | 144 | UINT8 *RAM = memory_region(screen->machine, "maincpu"); |
| 143 | 145 | |
| 146 | output_set_value("cass_led",(super80_shared & 0x20) ? 1 : 0); |
| 147 | |
| 144 | 148 | if ((super80_shared & 4) || (!(input_port_read(screen->machine, "CONFIG") & 4))) /* bit 2 of port F0 is high, OR user turned on config switch */ |
| 145 | 149 | screen_on++; |
| 146 | 150 | |
| r4942 | r4943 | |
| 180 | 184 | UINT16 sy=0,ma=vidpg,x; |
| 181 | 185 | UINT8 *RAM = memory_region(screen->machine, "maincpu"); |
| 182 | 186 | |
| 187 | output_set_value("cass_led",(super80_shared & 0x20) ? 1 : 0); |
| 188 | |
| 183 | 189 | if ((super80_shared & 4) || (!(input_port_read(screen->machine, "CONFIG") & 4))) /* bit 2 of port F0 is high, OR user turned on config switch */ |
| 184 | 190 | screen_on++; |
| 185 | 191 | |
| r4942 | r4943 | |
| 223 | 229 | /* get selected character generator */ |
| 224 | 230 | UINT8 cgen = current_charset ^ ((options & 0x10)>>4); /* bit 0 of port F1 and cgen config switch */ |
| 225 | 231 | |
| 232 | output_set_value("cass_led",(super80_shared & 0x20) ? 1 : 0); |
| 233 | |
| 226 | 234 | if ((super80_shared & 4) || (!(options & 4))) /* bit 2 of port F0 is high, OR user turned on config switch */ |
| 227 | 235 | screen_on++; |
| 228 | 236 | |
| r4942 | r4943 | |
| 399 | 407 | speed = mc6845_reg[10]&0x20, flash = mc6845_reg[10]&0x40, bg=0; // cursor modes |
| 400 | 408 | cursor = (mc6845_reg[14]<<8) | mc6845_reg[15]; // get cursor position |
| 401 | 409 | options=input_port_read(screen->machine, "CONFIG"); |
| 410 | output_set_value("cass_led",(super80_shared & 0x20) ? 1 : 0); |
| 402 | 411 | mc6845_update(mc6845, bitmap, cliprect); |
| 403 | 412 | return 0; |
| 404 | 413 | } |
src/mess/layout/super80.lay
| r4942 | r4943 | |
| 20 | 20 | |
| 21 | 21 | <view name="Cassette LED">
|
| 22 | 22 | <!-- <bezel name="cass_txt" element="CASSETTE">
|
| 23 | | <bounds left="0" right="100" top="830" bottom="850" />
|
| 24 | | </bezel>
|
| 23 | <bounds left="0" right="100" top="1030" bottom="1050" />
|
| 24 | </bezel> -->
|
| 25 | 25 | <bezel name="cass_led" element="red_led">
|
| 26 | | <bounds left="110" right="130" top="830" bottom="850" />
|
| 26 | <bounds left="0" right="20" top="1020" bottom="1045" />
|
| 27 | 27 | </bezel>
|
| 28 | | <bezel element="background">
|
| 28 | <!-- <bezel element="background">
|
| 29 | 29 | <bounds left="0" top="850" right="1" bottom="855" />
|
| 30 | 30 | </bezel> -->
|
| 31 | 31 | <screen index="0">
|
| 32 | | <bounds x="0" y="0" width="1400" height="1000" />
|
| 32 | <bounds x="0" y="0" width="1400" height="1050" />
|
| 33 | 33 | </screen>
|
| 34 | 34 | </view>
|
| 35 | 35 | |
src/mess/drivers/super80.c
| r4942 | r4943 | |
| 10 | 10 | #include "devices/z80bin.h" |
| 11 | 11 | #include "sound/speaker.h" |
| 12 | 12 | #include "machine/ctronics.h" |
| 13 | #include "super80.lh" |
| 13 | 14 | #include "super80.h" |
| 14 | 15 | |
| 15 | 16 | UINT8 *pcgram; |
| r4942 | r4943 | |
| 396 | 397 | MDRV_PALETTE_LENGTH(2) |
| 397 | 398 | MDRV_PALETTE_INIT(black_and_white) |
| 398 | 399 | |
| 400 | MDRV_DEFAULT_LAYOUT( layout_super80 ) |
| 399 | 401 | MDRV_VIDEO_START(super80) |
| 400 | 402 | MDRV_VIDEO_UPDATE(super80) |
| 401 | 403 | |
| r4942 | r4943 | |
| 461 | 463 | |
| 462 | 464 | MDRV_MC6845_ADD("crtc", MC6845, MASTER_CLOCK / SUPER80V_DOTS, super80v_crtc) |
| 463 | 465 | |
| 466 | MDRV_DEFAULT_LAYOUT( layout_super80 ) |
| 464 | 467 | MDRV_VIDEO_START(super80v) |
| 465 | 468 | MDRV_VIDEO_EOF(super80m) |
| 466 | 469 | MDRV_VIDEO_UPDATE(super80v) |