summaryrefslogtreecommitdiff
path: root/src/cpu/instructions.c
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-12-01 02:56:13 +1100
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-12-01 02:56:13 +1100
commit8ec080d0cd9fd62c0de20780581a4750d078ea94 (patch)
tree6ade354b2ddb37dba7dedd9d7eab0f8478071ff5 /src/cpu/instructions.c
parent580a7040ba53367c15ca682d4ea90c31fdcca45f (diff)
progress, still WIP
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 c043ac4..cf69fc2 100644
--- a/src/cpu/instructions.c
+++ b/src/cpu/instructions.c
@@ -136,7 +136,7 @@ void fEOR(Addressing addr, address val){
// Jump, Branch, Compare, and Test Bits
void fJMP(Addressing addr, address val){
- PC = val;
+ PC = val; PC -= 2;
}
void fBCC(Addressing addr, address val){ //FINISH ALL BRANCH INSTRUCTIONS