add cpu X and M flags to CDL for ExecFirst (fixes #1410, I hope)

This commit is contained in:
zeromus 2020-01-19 17:50:11 -05:00
parent 7d34bdbeb0
commit a5e8ae88ed
2 changed files with 3 additions and 1 deletions

View File

@ -68,6 +68,8 @@ enum eCDLog_Flags
eCDLog_Flags_ExecOperand = 0x02,
eCDLog_Flags_CPUData = 0x04,
eCDLog_Flags_DMAData = 0x08, //not supported yet
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

@ -1,5 +1,5 @@
alwaysinline uint8_t op_readpcfirst() {
return op_read((regs.pc.b << 16) + regs.pc.w++, eCDLog_Flags_ExecFirst);
return op_read((regs.pc.b << 16) + regs.pc.w++, (eCDLog_Flags)(eCDLog_Flags_ExecFirst | (regs.p & 0x30)));
}
alwaysinline uint8_t op_readpc() {