summaryrefslogtreecommitdiff
path: root/src/cpu/instructions.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-12-03 11:32:39 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-12-03 11:32:39 +1100
commit991c09b01e6b099a5b00d7a9236d252b85a714b5 (patch)
treebee9445cbd318bbf7a805c80b5bc4b94517b44df /src/cpu/instructions.c
parent7a5672d085399d0de9d2c77431ea7a2f089faacb (diff)
half-fixed infinite loop; new debug util, old one out
Diffstat (limited to 'src/cpu/instructions.c')
-rw-r--r--src/cpu/instructions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/instructions.c b/src/cpu/instructions.c
index da093ec..2d4fc9e 100644
--- a/src/cpu/instructions.c
+++ b/src/cpu/instructions.c
@@ -309,7 +309,7 @@ void fPLP(Addressing addr, address val){
void fJSR(Addressing addr, address val){
SetStack((PC+3) >> 8);
SetStack((PC+3) & 0x00FF);
- PC = idata.add;
+ PC = idata.add; PC -= 3;
}
void fRTS(Addressing addr, address val){