mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
Fix sega usb sound device, was using more memory than allocated (fixes zaxxon, segag80)
This commit is contained in:
parent
615e202943
commit
e310e72075
@ -43,7 +43,7 @@ usb_sound_device::usb_sound_device(const machine_config &mconfig, device_type ty
|
||||
m_out_latch(0),
|
||||
m_last_p2_value(0),
|
||||
m_program_ram(*this, "pgmram"),
|
||||
m_work_ram(*this, "workram"),
|
||||
m_work_ram(*this, "workram", 4*256, ENDIANNESS_LITTLE),
|
||||
m_work_ram_bank(0),
|
||||
m_t1_clock(0),
|
||||
m_t1_clock_mask(0),
|
||||
@ -726,7 +726,7 @@ void usb_sound_device::usb_map(address_map &map)
|
||||
|
||||
void usb_sound_device::usb_portmap(address_map &map)
|
||||
{
|
||||
map(0x00, 0xff).rw(FUNC(usb_sound_device::workram_r), FUNC(usb_sound_device::workram_w)).share("workram");
|
||||
map(0x00, 0xff).rw(FUNC(usb_sound_device::workram_r), FUNC(usb_sound_device::workram_w));
|
||||
}
|
||||
|
||||
|
||||
|
@ -71,7 +71,7 @@ private:
|
||||
u8 m_out_latch; // output latch
|
||||
u8 m_last_p2_value; // current P2 output value
|
||||
optional_shared_ptr<u8> m_program_ram; // pointer to program RAM
|
||||
required_shared_ptr<u8> m_work_ram; // pointer to work RAM
|
||||
memory_share_creator<u8> m_work_ram; // pointer to work RAM
|
||||
u8 m_work_ram_bank; // currently selected work RAM bank
|
||||
u8 m_t1_clock; // T1 clock value
|
||||
u8 m_t1_clock_mask; // T1 clock mask (configured via jumpers)
|
||||
|
Loading…
Reference in New Issue
Block a user