mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
nokia/mikromikko2: Fixed palette and added disk labels. [Curt Coder]
This commit is contained in:
parent
e7cc51d463
commit
cc6a710880
3 changed files with 28 additions and 2 deletions
|
@ -12,12 +12,30 @@ license:CC0-1.0
|
|||
<publisher>Nokia Data</publisher>
|
||||
|
||||
<part name="flop1" interface="floppy_5_25">
|
||||
<!--
|
||||
KÄYTTÖJÄRJESTELMÄLEVYKE
|
||||
|
||||
Nokia MS*-DOS 2.00 Versio 2.21
|
||||
|
||||
Sarjanro 1/2 CRTC 00010111
|
||||
*Microsoft Corp. tavaramerkki
|
||||
toimpvm 85-10-14
|
||||
-->
|
||||
<dataarea name="flop" size="537770">
|
||||
<rom name="12.imd" size="537770" crc="30d62aa0" sha1="887f433133439731baf7617292bcdcb29090075f"/>
|
||||
</dataarea>
|
||||
</part>
|
||||
|
||||
<part name="flop2" interface="floppy_5_25">
|
||||
<!--
|
||||
KÄYTTÖJÄRJESTELMÄLEVYKE
|
||||
|
||||
Nokia MS*-DOS 2.00 Versio 2.21
|
||||
|
||||
Sarjanro 2/2 CRTC 00000000
|
||||
*Microsoft Corp. tavaramerkki
|
||||
toimpvm 85-10-14
|
||||
-->
|
||||
<dataarea name="flop" size="451922">
|
||||
<rom name="13.imd" size="451922" crc="2efba243" sha1="341f44c2b204d74f729bf3f68ec77aa313c8ea9f"/>
|
||||
</dataarea>
|
||||
|
|
|
@ -289,6 +289,13 @@ static GFXDECODE_START( gfx_mm2 )
|
|||
GFXDECODE_ENTRY( "chargen", 0, gfxlayout, 0, 1 )
|
||||
GFXDECODE_END
|
||||
|
||||
void mm2_state::palette(palette_device &palette) const
|
||||
{
|
||||
palette.set_pen_color(0, rgb_t(0xff, 0xff, 0xff)); // white
|
||||
palette.set_pen_color(1, rgb_t(0x00, 0x00, 0x00)); // black (normal color)
|
||||
palette.set_pen_color(2, rgb_t(0x7f, 0x7f, 0x7f)); // grey ("highlight" mode color)
|
||||
}
|
||||
|
||||
uint32_t mm2_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
if (!m_blc)
|
||||
|
@ -312,7 +319,7 @@ uint32_t mm2_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c
|
|||
|
||||
for (int bit = 0; bit < 8; bit++)
|
||||
{
|
||||
bool pixel = BIT(char_data, 0) ^ !m_cpl;
|
||||
bool pixel = BIT(char_data, 0) ^ m_cpl;
|
||||
char_data >>= 1;
|
||||
|
||||
bitmap.pix((sy * 12) + y, (sx * 8) + bit) = pixel;
|
||||
|
@ -400,7 +407,7 @@ void mm2_state::mm2(machine_config &config)
|
|||
screen.set_palette(m_palette);
|
||||
|
||||
GFXDECODE(config, "gfxdecode", m_palette, gfx_mm2);
|
||||
PALETTE(config, m_palette, palette_device::MONOCHROME);
|
||||
PALETTE(config, m_palette, FUNC(mm2_state::palette), 3);
|
||||
|
||||
CRT9007(config, m_vpac, 35.4525_MHz_XTAL/8);
|
||||
m_vpac->set_addrmap(0, &mm2_state::vpac_mem);
|
||||
|
|
|
@ -85,6 +85,7 @@ private:
|
|||
void mm2_io_map(address_map &map);
|
||||
void vpac_mem(address_map &map);
|
||||
|
||||
void palette(palette_device &palette) const;
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
static void floppy_formats(format_registration &fr);
|
||||
|
|
Loading…
Reference in a new issue