mirror of
https://github.com/holub/mame
synced 2025-05-28 16:43:04 +03:00
(MESS) svmu: added default layout. (nw)
This commit is contained in:
parent
69e4a1b482
commit
2860e979ce
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -6478,6 +6478,7 @@ src/mess/layout/stopthie.lay svneol=native#text/plain
|
||||
src/mess/layout/super80.lay svneol=native#text/plain
|
||||
src/mess/layout/supercon.lay svneol=native#text/plain
|
||||
src/mess/layout/svision.lay svneol=native#text/plain
|
||||
src/mess/layout/svmu.lay svneol=native#text/plain
|
||||
src/mess/layout/sym1.lay svneol=native#text/plain
|
||||
src/mess/layout/tec1.lay svneol=native#text/plain
|
||||
src/mess/layout/tk80.lay svneol=native#text/plain
|
||||
|
@ -6,7 +6,6 @@
|
||||
|
||||
TODO:
|
||||
- add more bios versions
|
||||
- layout for LCD symbols
|
||||
- serial
|
||||
|
||||
****************************************************************************/
|
||||
@ -16,7 +15,7 @@
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "machine/intelfsh.h"
|
||||
#include "sound/speaker.h"
|
||||
#include "rendlay.h"
|
||||
#include "svmu.lh"
|
||||
|
||||
#define PIXEL_SIZE 7
|
||||
#define PIXEL_DISTANCE 1
|
||||
@ -39,8 +38,6 @@ public:
|
||||
virtual void machine_reset();
|
||||
|
||||
DECLARE_WRITE8_MEMBER(page_w);
|
||||
DECLARE_READ8_MEMBER(flash_r);
|
||||
DECLARE_WRITE8_MEMBER(flash_w);
|
||||
DECLARE_READ8_MEMBER(prog_r);
|
||||
DECLARE_WRITE8_MEMBER(prog_w);
|
||||
DECLARE_READ8_MEMBER(p1_r);
|
||||
@ -58,16 +55,6 @@ WRITE8_MEMBER(svmu_state::page_w)
|
||||
m_page = data & 0x03;
|
||||
}
|
||||
|
||||
READ8_MEMBER(svmu_state::flash_r)
|
||||
{
|
||||
return m_flash->read(offset);
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(svmu_state::flash_w)
|
||||
{
|
||||
m_flash->write(offset, data);
|
||||
}
|
||||
|
||||
READ8_MEMBER(svmu_state::prog_r)
|
||||
{
|
||||
if (m_page == 1)
|
||||
@ -177,11 +164,6 @@ static LC8670_LCD_UPDATE( svmu_lcd_update )
|
||||
for (int b=0; b<8; b++)
|
||||
bitmap.plot_box((x*8 + b) * (PIXEL_SIZE + PIXEL_DISTANCE), y * (PIXEL_SIZE + PIXEL_DISTANCE), PIXEL_SIZE, PIXEL_SIZE, BIT(gfx,7-b));
|
||||
}
|
||||
|
||||
popmessage("%c %c %c %c\n", BIT(vram[0xc1],6) ? 'F' : ' ', // File icon
|
||||
BIT(vram[0xc2],4) ? 'G' : ' ', // Game icon
|
||||
BIT(vram[0xc3],2) ? 'C' : ' ', // Clock icon
|
||||
BIT(vram[0xc4],0) ? 'A' : ' '); // Flash icon
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -330,7 +312,7 @@ static MACHINE_CONFIG_START( svmu, svmu_state )
|
||||
MCFG_SCREEN_SIZE(48 * (PIXEL_SIZE + PIXEL_DISTANCE), 32 * (PIXEL_SIZE + PIXEL_DISTANCE))
|
||||
MCFG_SCREEN_VISIBLE_AREA(0, 48*(PIXEL_SIZE + PIXEL_DISTANCE) - 1, 0, 32*(PIXEL_SIZE + PIXEL_DISTANCE) - 1)
|
||||
MCFG_SCREEN_UPDATE_DEVICE("maincpu", lc8670_cpu_device, screen_update)
|
||||
MCFG_DEFAULT_LAYOUT(layout_lcd)
|
||||
MCFG_DEFAULT_LAYOUT(layout_svmu)
|
||||
MCFG_PALETTE_LENGTH(2)
|
||||
|
||||
/* sound hardware */
|
||||
|
55
src/mess/layout/svmu.lay
Normal file
55
src/mess/layout/svmu.lay
Normal file
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<element name="file" defstate="0">
|
||||
<text string="FILE" state="1">
|
||||
<color red="0" green="0" blue="0" />
|
||||
</text>
|
||||
</element>
|
||||
<element name="game" defstate="0">
|
||||
<text string="GAME" state="1">
|
||||
<color red="0" green="0" blue="0" />
|
||||
</text>
|
||||
</element>
|
||||
<element name="clock" defstate="0">
|
||||
<text string="CLOCK" state="1">
|
||||
<color red="0" green="0" blue="0" />
|
||||
</text>
|
||||
</element>
|
||||
<element name="flash" defstate="0">
|
||||
<text string="FLASH" state="1">
|
||||
<color red="0" green="0" blue="0" />
|
||||
</text>
|
||||
</element>
|
||||
<element name="background">
|
||||
<rect>
|
||||
<color red="0.54" green="0.57" blue="0.58" />
|
||||
</rect>
|
||||
</element>
|
||||
|
||||
<view name="Default Layout">
|
||||
<bezel element="background">
|
||||
<bounds x="0" y="~scr0height~" width="~scr0width~" height="30" />
|
||||
</bezel>
|
||||
<bezel name="file_icon" element="file">
|
||||
<bounds x="0" y="~scr0height~" width="80" height="30" />
|
||||
</bezel>
|
||||
<bezel name="game_icon" element="game">
|
||||
<bounds x="85" y="~scr0height~" width="80" height="30" />
|
||||
</bezel>
|
||||
<bezel name="clock_icon" element="clock">
|
||||
<bounds x="170" y="~scr0height~" width="100" height="30" />
|
||||
</bezel>
|
||||
<bezel name="flash_icon" element="flash">
|
||||
<bounds x="275" y="~scr0height~" width="100" height="30" />
|
||||
</bezel>
|
||||
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" />
|
||||
</screen>
|
||||
</view>
|
||||
<view name="LCD Only">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" />
|
||||
</screen>
|
||||
</view>
|
||||
</mamelayout>
|
@ -2228,6 +2228,7 @@ $(MESS_DRIVERS)/stopthie.o: $(MESS_LAYOUT)/stopthie.lh
|
||||
$(MESS_DRIVERS)/super80.o: $(MESS_LAYOUT)/super80.lh
|
||||
$(MESS_DRIVERS)/supercon.o: $(MESS_LAYOUT)/supercon.lh
|
||||
$(MESS_DRIVERS)/svision.o: $(MESS_LAYOUT)/svision.lh
|
||||
$(MESS_DRIVERS)/svmu.o: $(MESS_LAYOUT)/svmu.lh
|
||||
$(MESS_DRIVERS)/sym1.o: $(MESS_LAYOUT)/sym1.lh
|
||||
$(MESS_DRIVERS)/tec1.o: $(MESS_LAYOUT)/tec1.lh
|
||||
$(MESS_DRIVERS)/tk80bs.o: $(MESS_LAYOUT)/tk80.lh
|
||||
|
Loading…
Reference in New Issue
Block a user