SNES CDL - set DMAData flag for dma reading rather than leaving nonsense flags (fixes #1409)
This commit is contained in:
parent
c171505d64
commit
e7a1638e00
Binary file not shown.
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue