From 570bb71bee1042d656cc121b45598bb1198e2df4 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Thu, 3 Apr 2025 12:04:10 +0300 Subject: some fixes --- instructions/LSR.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'instructions/LSR.ts') 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); -- cgit 1.4.1-2-gfad0