Previous 15994 Revisions Next

r7577 Monday 15th March, 2010 at 21:24:00 UTC by Stefano Priore
[SPECTRUM] Fixed RAM selection
[src/mess/drivers]spectrum.c

src/mess/drivers/spectrum.c
r7576r7577
624624DRIVER_INIT( spectrum )
625625{
626626   const address_space *space = cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM);
627   UINT8 *ram = messram_get_ptr(devtag_get_device(machine, "messram"));
628627
629628   switch (messram_get_size(devtag_get_device(machine, "messram")))
630629   {
631630       case 48*1024:
632      memory_install_ram(space, 0x8000, 0xffff, 0, 0, ram); // Fall through
631      memory_install_ram(space, 0x8000, 0xffff, 0, 0, NULL); // Fall through
633632       case 16*1024:
634      memory_install_ram(space, 0x5b00, 0x7fff, 0, 0, ram);
633      memory_install_ram(space, 0x5b00, 0x7fff, 0, 0, NULL);
635634   }
636635}
637636

Previous 15994 Revisions Next


© 1998-2018 The MESS Team