From c50e619bef9ecd2266ee904b87c6401cb0572660 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Thu, 3 Apr 2025 10:29:58 +0300 Subject: fix stuff --- instructions/ROL.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'instructions/ROL.ts') 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); -- cgit 1.4.1-2-gfad0