DMA: Write correct terminator at end of OTC

Fixes NBA Live 96.
This commit is contained in:
Connor McLaughlin 2020-05-17 13:58:24 +10:00
parent 2795dea124
commit 7d887edf17

View file

@ -461,7 +461,7 @@ TickCount DMA::TransferDeviceToMemory(Channel channel, u32 address, u32 incremen
address = (address - 4) & ADDRESS_MASK;
}
const u32 terminator = UINT32_C(0xFFFFFFF);
const u32 terminator = UINT32_C(0xFFFFFF);
std::memcpy(&ram_pointer[address], &terminator, sizeof(terminator));
m_bus->InvalidateCodePages(address, word_count);
return m_bus->GetDMARAMTickCount(word_count);