We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8723ade commit a89be09Copy full SHA for a89be09
src/core/r3000a.h
@@ -251,8 +251,7 @@ typedef struct {
251
#define _JumpTarget_ ((_Target_ * 4) + (_PC_ & 0xf0000000)) // Calculates the target during a jump instruction
252
#define _BranchTarget_ ((int16_t)_Im_ * 4 + _PC_) // Calculates the target during a branch instruction
253
254
-#define _SetLink(x) \
255
- PCSX::g_emulator.m_psxCpu->m_psxRegs.GPR.r[x] = _PC_ + 4 // Sets the return address in the link register
+#define _SetLink(x) delayedLoad(x, _PC_ + 4); // Sets the return address in the link register
256
257
class R3000Acpu {
258
public:
0 commit comments