Skip to content

Commit c66211c

Browse files
committed
korgtriton: add a MOSS skeleton
1 parent 202d453 commit c66211c

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/mame/korg/korgtriton.cpp

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Serial Interface: uPD71051
1212
SCSI controller: MB86604L
1313
Sound: 2 * "TGL96" MB87F1710-PFV-S (proprietary)
1414
15-
This driver runs the embedded firmware up until it needs to
16-
relocate and run the main application. The screen remains
17-
blank for all this time.
15+
This driver runs the embedded firmware with skeleton devices
16+
until the boot splash screen is shown.
1817
*/
1918

2019

@@ -66,6 +65,8 @@ class korgtriton_state : public driver_device
6665

6766
u16 m_tgl[0x1000];
6867

68+
int m_moss_hack_idx;
69+
6970
void map(address_map &map) ATTR_COLD;
7071

7172
u32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
@@ -87,6 +88,9 @@ class korgtriton_state : public driver_device
8788

8889
u8 tgl_r(offs_t offs);
8990
void tgl_w(offs_t offs, u8 data);
91+
92+
u8 moss_r(offs_t offs);
93+
void moss_w(offs_t offs, u8 data);
9094
};
9195

9296
static INPUT_PORTS_START(korgtriton)
@@ -121,7 +125,8 @@ void korgtriton_state::map(address_map &map)
121125
map(0x900000, 0x9fffff).ram().share(m_lcdcm);
122126
map(0xa00000, 0xafffff).rw(FUNC(korgtriton_state::lcdcio_r), FUNC(korgtriton_state::lcdcio_w));
123127
map(0xb00000, 0xbfffff).rw(FUNC(korgtriton_state::tgl_r), FUNC(korgtriton_state::tgl_w));
124-
// map(0xd00000, 0xdfffff).ram(); // MOSS
128+
map(0xd00000, 0xdfffff).rw(FUNC(korgtriton_state::moss_r), FUNC(korgtriton_state::moss_w));
129+
125130
// map(0xe00000, 0xefffff).ram(); // FDC
126131

127132
// TODO: figure out why clocking the SCU device from port E is not working
@@ -268,6 +273,18 @@ void korgtriton_state::tgl_w(offs_t offs, u8 data) {
268273
m_tgl[offs] = data;
269274
}
270275

276+
u8 korgtriton_state::moss_r(offs_t offs)
277+
{
278+
if (!machine().side_effects_disabled())
279+
m_moss_hack_idx++;
280+
281+
return m_moss_hack_idx;
282+
}
283+
284+
void korgtriton_state::moss_w(offs_t offs, u8 data)
285+
{
286+
}
287+
271288
// the following rom images are taken from the Triton OS 2.0.0 floppy disks
272289
// the romfiles are missing the first two bytes (checksum) present in the
273290
// files obtainable from floppy disks online.

0 commit comments

Comments
 (0)