Previous 15994 Revisions Next

r9830 Monday 27th December, 2010 at 21:59:30 UTC by Nathan Woods
[A2600] Fixed a bug that could cause crashes on exits. (bug #1948) [Atari Ace]
[docs]messnew.txt
[src/mess/drivers]a2600.c

src/mess/drivers/a2600.c
r9829r9830
704704static void modeE7_RAM_switch(running_machine *machine, UINT16 offset, UINT8 data)
705705{
706706   a2600_state *state = machine->driver_data<a2600_state>();
707   memory_set_bankptr(machine,"bank9", state->extra_RAM + (4 + offset) * 256 );
707   memory_set_bankptr(machine,"bank9", state->extra_RAM->base() + (4 + offset) * 256 );
708708}
709709static void modeDC_switch(running_machine *machine, UINT16 offset, UINT8 data)
710710{
r9829r9830
19691969      memory_install_write8_handler(space, 0x1fe8, 0x1feb, 0, 0, modeE7_RAM_switch_w);
19701970      memory_install_read8_handler(space, 0x1fe8, 0x1feb, 0, 0, modeE7_RAM_switch_r);
19711971      memory_install_readwrite_bank(space, 0x1800, 0x18ff, 0, 0, "bank9");
1972      memory_set_bankptr(machine, "bank9", state->extra_RAM + 4 * 256 );
1972      memory_set_bankptr(machine, "bank9", state->extra_RAM->base() + 4 * 256 );
19731973      break;
19741974
19751975   case modeDC:
r9829r9830
20432043      memory_install_write_bank(space, 0x1000, 0x10ff, 0, 0, "bank9");
20442044      memory_install_read_bank(space, 0x1100, 0x11ff, 0, 0, "bank9");
20452045
2046      memory_set_bankptr(machine,"bank9", state->extra_RAM);
2046      memory_set_bankptr(machine,"bank9", state->extra_RAM->base());
20472047   }
20482048
20492049   if (state->banking_mode == modeCV)
r9829r9830
20512051      memory_install_write_bank(space, 0x1400, 0x17ff, 0, 0, "bank9");
20522052      memory_install_read_bank(space, 0x1000, 0x13ff, 0, 0, "bank9");
20532053
2054      memory_set_bankptr(machine,"bank9", state->extra_RAM);
2054      memory_set_bankptr(machine,"bank9", state->extra_RAM->base());
20552055   }
20562056
20572057   if (chip)
r9829r9830
20592059      memory_install_write_bank(space, 0x1000, 0x107f, 0, 0, "bank9");
20602060      memory_install_read_bank(space, 0x1080, 0x10ff, 0, 0, "bank9");
20612061
2062      memory_set_bankptr(machine,"bank9", state->extra_RAM);
2062      memory_set_bankptr(machine,"bank9", state->extra_RAM->base());
20632063   }
20642064
20652065   /* Banks may have changed, reset the cpu so it uses the correct reset vector */
docs/messnew.txt
r9829r9830
5050
5151System Driver Changes:
5252----------------------
53- [A2600] Fixed a bug that could cause crashes on exits.  (bug #1948)
54  [Atari Ace]
55
5356- [ABC80] Added graphics PROMs. [Ola Andersson]
5457
5558- [ABC80] Refactored video to work like real hardware. [Curt Coder]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team