Previous 15994 Revisions Next

r9940 Thursday 6th January, 2011 at 11:08:15 UTC by Robbbert
[ACE] Fixed loading of ACE files. Fixed messram it was stuck at 1K. messram tag must be "ram".
[src/mess/drivers]ace.c
[src/mess/includes]ace.h
[src/mess/machine]ace.c

src/mess/machine/ace.c
r9939r9940
3636   unsigned char ace_repeat, ace_byte, loop;
3737   int done=0, ace_index=0x2000;
3838
39   if (ram_get_size(image.device().machine->device("messram")) < 16*1024)
39   if (ram_get_size(image.device().machine->device("ram")) < 16*1024)
4040   {
4141      image.seterror(IMAGE_ERROR_INVALIDIMAGE, "At least 16KB RAM expansion required");
4242      image.message("At least 16KB RAM expansion required");
src/mess/includes/ace.h
r9939r9940
2121        m_maincpu(*this, Z80_TAG),
2222        m_speaker(*this, SPEAKER_TAG),
2323        m_cassette(*this, CASSETTE_TAG),
24        m_ram(*this, "messram")
24        m_ram(*this, "ram")
2525    { }
2626
2727   required_device<cpu_device> m_maincpu;
src/mess/drivers/ace.c
r9939r9940
410410   MCFG_SNAPSHOT_ADD("snapshot", ace, "ace", 1)
411411
412412   /* internal ram */
413   MCFG_RAM_ADD("messram")
413   MCFG_RAM_ADD("ram")
414414   MCFG_RAM_DEFAULT_SIZE("1K")
415415   MCFG_RAM_EXTRA_OPTIONS("16K,48K")
416416MACHINE_CONFIG_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team