Skip to content

Commit 6fa40f8

Browse files
committed
nec/pc9801.cpp: provide some EGC defaults
1 parent 7909555 commit 6fa40f8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

hash/pc98.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20863,9 +20863,12 @@ Black screen [FDC] keeps reading chrn=(0, 0, 3, 256) in 2dd mode
2086320863
<publisher>ビクターエンタテインメント (Victor Entertainment)</publisher>
2086420864
<notes><![CDATA[
2086520865
Black screen, around PC=1fc76. Extensively uses 9821 [PEGC] MMIO.
20866+
16 color mode has a column to the right shifted by one pixel on intro and gameplay
20867+
Optional support for unsupported [graphic] and [sound] options
2086620868
]]></notes>
2086720869
<info name="alt_title" value="フラッシュバック" />
2086820870
<info name="release" value="19940422" />
20871+
<info name="usage" value="Requires HDD DOS install" />
2086920872
<part name="flop1" interface="floppy_5_25">
2087020873
<feature name="part_id" value="Disk A"/>
2087120874
<dataarea name="flop" size="1329680">

src/mame/nec/pc9801.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,10 @@ MACHINE_START_MEMBER(pc9801vm_state,pc9801rs)
17781778
save_item(NAME(m_egc.start));
17791779
save_item(NAME(m_egc.mask));
17801780

1781-
save_item(NAME(m_grcg.mode));
1781+
save_item(STRUCT_MEMBER(m_grcg, mode));
1782+
// save_pointer(STRUCT_MEMBER(m_grcg, tile), 4);
1783+
save_item(STRUCT_MEMBER(m_grcg, tile_index));
1784+
17821785
save_item(NAME(m_vram_bank));
17831786
}
17841787

@@ -1860,6 +1863,12 @@ MACHINE_RESET_MEMBER(pc9801vm_state,pc9801rs)
18601863
}
18611864

18621865
m_dac1bit_disable = true;
1866+
1867+
// flashb in particular don't initialize the mask in 16 color mode
1868+
m_egc.regs[0] = 0xfff0;
1869+
m_egc.regs[1] = 0x00ff;
1870+
m_egc.mask = 0xffff;
1871+
m_egc.regs[7] = 0x000f;
18631872
}
18641873

18651874
MACHINE_RESET_MEMBER(pc9801bx_state,pc9801bx2)

0 commit comments

Comments
 (0)