src/mame/machine/megadriv.c
| r15624 | r15625 | |
| 45 | 45 | #include "includes/megadriv.h" |
| 46 | 46 | #include "machine/nvram.h" |
| 47 | 47 | #include "cpu/ssp1601/ssp1601.h" |
| 48 | #include "megacd.lh" |
| 48 | 49 | |
| 49 | 50 | |
| 50 | 51 | |
| r15624 | r15625 | |
| 1258 | 1259 | |
| 1259 | 1260 | MCFG_TIMER_ADD("sw_timer", NULL) //stopwatch timer |
| 1260 | 1261 | |
| 1262 | MCFG_DEFAULT_LAYOUT( layout_megacd ) |
| 1263 | |
| 1261 | 1264 | MCFG_NVRAM_ADD_0FILL("backupram") |
| 1262 | 1265 | |
| 1263 | 1266 | MCFG_SOUND_ADD( "cdda", CDDA, 0 ) |
| r15624 | r15625 | |
| 1270 | 1273 | |
| 1271 | 1274 | MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback) |
| 1272 | 1275 | |
| 1273 | | |
| 1274 | 1276 | MCFG_QUANTUM_PERFECT_CPU("segacd_68k") // perfect sync to the fastest cpu |
| 1275 | 1277 | MACHINE_CONFIG_END |
| 1276 | 1278 | |
| r15624 | r15625 | |
| 1305 | 1307 | MCFG_NVRAM_ADD_0FILL("backupram") |
| 1306 | 1308 | MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback) |
| 1307 | 1309 | |
| 1310 | MCFG_DEFAULT_LAYOUT( layout_megacd ) |
| 1311 | |
| 1308 | 1312 | MCFG_SOUND_ADD( "cdda", CDDA, 0 ) |
| 1309 | 1313 | MCFG_SOUND_ROUTE( 0, "lspeaker", 0.50 ) |
| 1310 | 1314 | MCFG_SOUND_ROUTE( 1, "rspeaker", 0.50 ) |
src/mame/layout/megacd.lay
| r0 | r15625 | |
| 1 | <!-- Basic display of CD-ROM drive LEDs for the Sega MegaCD --> |
| 2 | |
| 3 | <mamelayout version="2"> |
| 4 | |
| 5 | <element name="red_led"> |
| 6 | <rect> |
| 7 | <color red="1.0" green="0.0" blue="0.0" /> |
| 8 | </rect> |
| 9 | </element> |
| 10 | <element name="green_led"> |
| 11 | <rect> |
| 12 | <color red="0.0" green="1.0" blue="0.0" /> |
| 13 | </rect> |
| 14 | </element> |
| 15 | |
| 16 | <view name="Simple Artwork"> |
| 17 | <bounds left="0" right="400" top="0" bottom="330" /> |
| 18 | <screen index="0"> |
| 19 | <bounds left="0" right="400" top="0" bottom="300" /> |
| 20 | </screen> |
| 21 | |
| 22 | <bezel name="red_led" element="red_led"> |
| 23 | <bounds x="8" y="312" width="17" height="9" /> |
| 24 | </bezel> |
| 25 | |
| 26 | <bezel name="green_led" element="green_led"> |
| 27 | <bounds x="31" y="312" width="17" height="9" /> |
| 28 | </bezel> |
| 29 | </view> |
| 30 | |
| 31 | </mamelayout> |
| | No newline at end of file |