mirror of
https://github.com/holub/mame
synced 2025-06-30 16:00:01 +03:00
Fix rax, maybe (nw)
This commit is contained in:
parent
7c85bc8c40
commit
ca89fa9e15
@ -130,7 +130,7 @@ WRITE16_MEMBER( acclaim_rax_device::adsp_control_w )
|
|||||||
{
|
{
|
||||||
uint32_t src_dword = (adsp_rom[src_addr + 0] << 16) | (adsp_rom[src_addr + 1] << 8) | adsp_rom[src_addr + 2];
|
uint32_t src_dword = (adsp_rom[src_addr + 0] << 16) | (adsp_rom[src_addr + 1] << 8) | adsp_rom[src_addr + 2];
|
||||||
|
|
||||||
addr_space->write_dword(m_control_regs[BDMA_INT_ADDR_REG] * 4, src_dword);
|
addr_space->write_dword(m_control_regs[BDMA_INT_ADDR_REG], src_dword);
|
||||||
|
|
||||||
src_addr += 3;
|
src_addr += 3;
|
||||||
++m_control_regs[BDMA_INT_ADDR_REG];
|
++m_control_regs[BDMA_INT_ADDR_REG];
|
||||||
@ -143,7 +143,7 @@ WRITE16_MEMBER( acclaim_rax_device::adsp_control_w )
|
|||||||
{
|
{
|
||||||
uint16_t src_word = (adsp_rom[src_addr + 0] << 8) | adsp_rom[src_addr + 1];
|
uint16_t src_word = (adsp_rom[src_addr + 0] << 8) | adsp_rom[src_addr + 1];
|
||||||
|
|
||||||
addr_space->write_word(m_control_regs[BDMA_INT_ADDR_REG] * 2, src_word);
|
addr_space->write_word(m_control_regs[BDMA_INT_ADDR_REG], src_word);
|
||||||
|
|
||||||
src_addr += 2;
|
src_addr += 2;
|
||||||
++m_control_regs[BDMA_INT_ADDR_REG];
|
++m_control_regs[BDMA_INT_ADDR_REG];
|
||||||
@ -158,7 +158,7 @@ WRITE16_MEMBER( acclaim_rax_device::adsp_control_w )
|
|||||||
{
|
{
|
||||||
uint16_t src_word = adsp_rom[src_addr] << shift;
|
uint16_t src_word = adsp_rom[src_addr] << shift;
|
||||||
|
|
||||||
addr_space->write_word(m_control_regs[BDMA_INT_ADDR_REG] * 2, src_word);
|
addr_space->write_word(m_control_regs[BDMA_INT_ADDR_REG], src_word);
|
||||||
|
|
||||||
++src_addr;
|
++src_addr;
|
||||||
++m_control_regs[BDMA_INT_ADDR_REG];
|
++m_control_regs[BDMA_INT_ADDR_REG];
|
||||||
@ -355,7 +355,7 @@ void acclaim_rax_device::adsp_irq(int which)
|
|||||||
|
|
||||||
for (uint32_t i = 0; i < count; i++)
|
for (uint32_t i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
buffer[i] = m_data->read_word(reg * 2);
|
buffer[i] = m_data->read_word(reg);
|
||||||
reg += m_incs[which];
|
reg += m_incs[which];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user