SNES CDL - set DMAData flag for dma reading rather than leaving nonsense flags (fixes #1409)

This commit is contained in:
zeromus 2020-01-22 22:01:04 -05:00
parent c171505d64
commit e7a1638e00
4 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -67,7 +67,7 @@ enum eCDLog_Flags
eCDLog_Flags_ExecFirst = 0x01,
eCDLog_Flags_ExecOperand = 0x02,
eCDLog_Flags_CPUData = 0x04,
eCDLog_Flags_DMAData = 0x08, //not supported yet
eCDLog_Flags_DMAData = 0x08,
eCDLog_Flags_CPUXFlag = 0x10, //these values are picky, don't change them
eCDLog_Flags_CPUMFlag = 0x20, //these values are picky, don't change them
eCDLog_Flags_BRR = 0x80

View File

@ -17,6 +17,7 @@ bool CPU::dma_addr_valid(unsigned abus) {
uint8 CPU::dma_read(unsigned abus) {
if(dma_addr_valid(abus) == false) return 0x00;
cdlInfo.currFlags = eCDLog_Flags_DMAData;
return bus.read(abus);
}

View File

@ -26,6 +26,7 @@ bool CPU::dma_addr_valid(uint32 abus) {
uint8 CPU::dma_read(uint32 abus) {
if(dma_addr_valid(abus) == false) return 0x00;
cdlInfo.currFlags = eCDLog_Flags_DMAData;
return bus.read(abus);
}