Port from MESS (LED addition for MCD), nw

This commit is contained in:
Angelo Salese 2012-07-19 02:39:36 +00:00
parent f992e2ea53
commit a08e319b6f
5 changed files with 43 additions and 2 deletions

1
.gitattributes vendored
View File

@ -4093,6 +4093,7 @@ src/mame/layout/luckyrlt.lay svneol=native#text/plain
src/mame/layout/majorpkr.lay svneol=native#text/plain src/mame/layout/majorpkr.lay svneol=native#text/plain
src/mame/layout/maxaflex.lay svneol=native#text/plain src/mame/layout/maxaflex.lay svneol=native#text/plain
src/mame/layout/mdrawpkr.lay svneol=native#text/plain src/mame/layout/mdrawpkr.lay svneol=native#text/plain
src/mame/layout/megacd.lay svneol=native#text/plain
src/mame/layout/meybjack.lay svneol=native#text/plain src/mame/layout/meybjack.lay svneol=native#text/plain
src/mame/layout/mil4000.lay svneol=native#text/plain src/mame/layout/mil4000.lay svneol=native#text/plain
src/mame/layout/mpoker.lay svneol=native#text/plain src/mame/layout/mpoker.lay svneol=native#text/plain

View File

@ -0,0 +1,31 @@
<!-- Basic display of CD-ROM drive LEDs for the Sega MegaCD -->
<mamelayout version="2">
<element name="red_led">
<rect>
<color red="1.0" green="0.0" blue="0.0" />
</rect>
</element>
<element name="green_led">
<rect>
<color red="0.0" green="1.0" blue="0.0" />
</rect>
</element>
<view name="Simple Artwork">
<bounds left="0" right="400" top="0" bottom="330" />
<screen index="0">
<bounds left="0" right="400" top="0" bottom="300" />
</screen>
<bezel name="red_led" element="red_led">
<bounds x="8" y="312" width="17" height="9" />
</bezel>
<bezel name="green_led" element="green_led">
<bounds x="31" y="312" width="17" height="9" />
</bezel>
</view>
</mamelayout>

View File

@ -2415,9 +2415,11 @@ static WRITE16_HANDLER( segacd_sub_led_ready_w )
segacd_redled = (data >> 8)&1; segacd_redled = (data >> 8)&1;
segacd_greenled = (data >> 9)&1; segacd_greenled = (data >> 9)&1;
output_set_value("red_led",segacd_redled ^ 1);
output_set_value("green_led",segacd_greenled ^ 1);
//popmessage("%02x %02x",segacd_greenled,segacd_redled); //popmessage("%02x %02x",segacd_greenled,segacd_redled);
} }
} }

View File

@ -45,6 +45,7 @@ Known Non-Issues (confirmed on Real Genesis)
#include "includes/megadriv.h" #include "includes/megadriv.h"
#include "machine/nvram.h" #include "machine/nvram.h"
#include "cpu/ssp1601/ssp1601.h" #include "cpu/ssp1601/ssp1601.h"
#include "megacd.lh"
@ -1258,6 +1259,8 @@ MACHINE_CONFIG_DERIVED( genesis_scd, megadriv )
MCFG_TIMER_ADD("sw_timer", NULL) //stopwatch timer MCFG_TIMER_ADD("sw_timer", NULL) //stopwatch timer
MCFG_DEFAULT_LAYOUT( layout_megacd )
MCFG_NVRAM_ADD_0FILL("backupram") MCFG_NVRAM_ADD_0FILL("backupram")
MCFG_SOUND_ADD( "cdda", CDDA, 0 ) MCFG_SOUND_ADD( "cdda", CDDA, 0 )
@ -1270,7 +1273,6 @@ MACHINE_CONFIG_DERIVED( genesis_scd, megadriv )
MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback) MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback)
MCFG_QUANTUM_PERFECT_CPU("segacd_68k") // perfect sync to the fastest cpu MCFG_QUANTUM_PERFECT_CPU("segacd_68k") // perfect sync to the fastest cpu
MACHINE_CONFIG_END MACHINE_CONFIG_END
@ -1305,6 +1307,8 @@ MACHINE_CONFIG_DERIVED( genesis_32x_scd, genesis_32x )
MCFG_NVRAM_ADD_0FILL("backupram") MCFG_NVRAM_ADD_0FILL("backupram")
MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback) MCFG_TIMER_ADD("scd_dma_timer", scd_dma_timer_callback)
MCFG_DEFAULT_LAYOUT( layout_megacd )
MCFG_SOUND_ADD( "cdda", CDDA, 0 ) MCFG_SOUND_ADD( "cdda", CDDA, 0 )
MCFG_SOUND_ROUTE( 0, "lspeaker", 0.50 ) MCFG_SOUND_ROUTE( 0, "lspeaker", 0.50 )
MCFG_SOUND_ROUTE( 1, "rspeaker", 0.50 ) MCFG_SOUND_ROUTE( 1, "rspeaker", 0.50 )

View File

@ -2212,6 +2212,9 @@ $(DRIVERS)/zac2650.o: $(LAYOUT)/tinv2650.lh
$(DRIVERS)/peyper.o: $(LAYOUT)/peyper.lh $(DRIVERS)/peyper.o: $(LAYOUT)/peyper.lh
$(MACHINE)/megadriv.o $(LAYOUT)/megacd.lh
#------------------------------------------------- #-------------------------------------------------
# misc dependencies # misc dependencies
#------------------------------------------------- #-------------------------------------------------