Permalink
Browse files

taito_en.cpp: Regression fix (nw)

  • Loading branch information...
ajrhacker committed Feb 19, 2018
1 parent 371b7d4 commit 35d46f44df59aefadfccc5f0767e11355a33b4e1
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/mame/audio/taito_en.cpp
@@ -56,9 +56,10 @@ void taito_en_device::device_start()
void taito_en_device::device_reset()
{
/* Sound cpu program loads to 0xc00000 so we use a bank */
uint32_t max = (m_osrom->bytes() - 0x100000) / 0x20000;
for (int i = 0; i < 3; i++)
m_cpubank[i]->set_entry(i);
m_cpubank[i]->set_entry(i % max);
uint16_t *ROM = (uint16_t *)m_osrom->base();
std::copy(&ROM[0x80000], &ROM[0x80004], &m_osram[0]); /* Stack and Reset vectors */

1 comment on commit 35d46f4

@Tafoid

This comment has been minimized.

Show comment
Hide comment
@Tafoid

Tafoid Feb 19, 2018

Contributor

ridingfj, ringrage and clones now exception:

Exception at EIP=0248137e (es5510_device::host_w(address_space&, unsigned int, unsigned char, unsigned char)+0x043e): ACCESS VIOLATION
While attempting to write memory at 0f6592d0

Stack crawl:
0028bd38: 0248137e (es5510_device::host_w(address_space&, unsigned int, unsigned char, unsigned char)+0x043e)
0028bd78: 0536f1e6 (delegate_base<void, address_space&, unsigned int, unsigned char, unsigned char>::operator()(address_space&, unsigned int, unsigned char, unsigned char) const+0x0036)
0028bda8: 03609553 (handler_entry_write::write_stub_16(address_space&, unsigned int, unsigned short, unsigned short)+0x0183)
0028bde8: 0536f356 (delegate_base<void, address_space&, unsigned int, unsigned short, unsigned short>::operator()(address_space&, unsigned int, unsigned short, unsigned short) const+0x0036)
0028be28: 04adab96 (address_space_specific<unsigned short, (endianness_t)1, 0, true>::write_native(unsigned int, unsigned short, unsigned short)+0x00a6)
0028be48: 04ada534 (address_space_specific<unsigned short, (endianness_t)1, 0, true>::write_word(unsigned int, unsigned short, unsigned short)+0x0024)
0028be78: 02746598 (m68000_base_device::m68000_write_byte(unsigned int, unsigned char)+0x0048)
0028bea8: 0536f4c4 (delegate_base<void, unsigned int, unsigned char>::operator()(unsigned int, unsigned char) const+0x0024)
0028bed8: 0279c022 (m68000_base_device::m68k_op_move_8_di_pi7()+0x0092)
0028bf58: 02749207 (m68000_base_device::execute_run()+0x0147)
0028bfd8: 036a56f8 (device_scheduler::timeslice()+0x0468)
0028c058: 0365f827 (running_machine::run(bool)+0x0117)
0028f7f8: 01de9316 (mame_machine_manager::execute()+0x01e6)
0028f988: 01e5a40d (cli_frontend::start_execution(mame_machine_manager*, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)+0x043d)

Contributor

Tafoid commented on 35d46f4 Feb 19, 2018

ridingfj, ringrage and clones now exception:

Exception at EIP=0248137e (es5510_device::host_w(address_space&, unsigned int, unsigned char, unsigned char)+0x043e): ACCESS VIOLATION
While attempting to write memory at 0f6592d0

Stack crawl:
0028bd38: 0248137e (es5510_device::host_w(address_space&, unsigned int, unsigned char, unsigned char)+0x043e)
0028bd78: 0536f1e6 (delegate_base<void, address_space&, unsigned int, unsigned char, unsigned char>::operator()(address_space&, unsigned int, unsigned char, unsigned char) const+0x0036)
0028bda8: 03609553 (handler_entry_write::write_stub_16(address_space&, unsigned int, unsigned short, unsigned short)+0x0183)
0028bde8: 0536f356 (delegate_base<void, address_space&, unsigned int, unsigned short, unsigned short>::operator()(address_space&, unsigned int, unsigned short, unsigned short) const+0x0036)
0028be28: 04adab96 (address_space_specific<unsigned short, (endianness_t)1, 0, true>::write_native(unsigned int, unsigned short, unsigned short)+0x00a6)
0028be48: 04ada534 (address_space_specific<unsigned short, (endianness_t)1, 0, true>::write_word(unsigned int, unsigned short, unsigned short)+0x0024)
0028be78: 02746598 (m68000_base_device::m68000_write_byte(unsigned int, unsigned char)+0x0048)
0028bea8: 0536f4c4 (delegate_base<void, unsigned int, unsigned char>::operator()(unsigned int, unsigned char) const+0x0024)
0028bed8: 0279c022 (m68000_base_device::m68k_op_move_8_di_pi7()+0x0092)
0028bf58: 02749207 (m68000_base_device::execute_run()+0x0147)
0028bfd8: 036a56f8 (device_scheduler::timeslice()+0x0468)
0028c058: 0365f827 (running_machine::run(bool)+0x0117)
0028f7f8: 01de9316 (mame_machine_manager::execute()+0x01e6)
0028f988: 01e5a40d (cli_frontend::start_execution(mame_machine_manager*, std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&)+0x043d)

Please sign in to comment.