summary refs log tree commit diff
path: root/instructions/LSR.ts
diff options
context:
space:
mode:
Diffstat (limited to 'instructions/LSR.ts')
-rw-r--r--instructions/LSR.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/instructions/LSR.ts b/instructions/LSR.ts
index 61adadb..b907e47 100644
--- a/instructions/LSR.ts
+++ b/instructions/LSR.ts
@@ -8,6 +8,7 @@ export default function (this: The65c02, mode: string) {
         this.zero = result == 0
         this.carry = (mem & 1) != 0
         this.regA.set(result & 0xFF);
+        this.programCounter.increment()
     } else {
         const addr = this.getAddr(mode)
         this.io.address.set(addr);