summary refs log tree commit diff
path: root/instructions/ROL.ts
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2025-04-03 10:29:58 +0300
committerWlodekM <[email protected]>2025-04-03 10:29:58 +0300
commitc50e619bef9ecd2266ee904b87c6401cb0572660 (patch)
tree4b25b2daba31d9f542ed5dcb3d61e95c5d186bec /instructions/ROL.ts
parent22bf543c4feca33cfcd68c57de516761bb64a553 (diff)
fix stuff
Diffstat (limited to 'instructions/ROL.ts')
-rw-r--r--instructions/ROL.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/instructions/ROL.ts b/instructions/ROL.ts
index c76ef8b..bd1e810 100644
--- a/instructions/ROL.ts
+++ b/instructions/ROL.ts
@@ -7,6 +7,7 @@ export default function (this: The65c02, mode: string) {
         this.negative = (result & 256) != 0
         this.carry = (mem & 256) != 0
         this.regA.set(result & 0xFF);
+        this.programCounter.increment()
     } else {
         const addr = this.getAddr(mode)
         this.io.address.set(addr);