From 8005bf4f12c6f9315d269905cc2de32bf6182513 Mon Sep 17 00:00:00 2001 From: WlodekM Date: Thu, 3 Apr 2025 11:39:20 +0300 Subject: fix rts --- instructions/RTS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'instructions') diff --git a/instructions/RTS.ts b/instructions/RTS.ts index 483a441..5a69fdd 100644 --- a/instructions/RTS.ts +++ b/instructions/RTS.ts @@ -1,5 +1,5 @@ import type The65c02 from "../65c02.ts"; export default function (this: The65c02) { - this.programCounter.set(this.pop() | (this.pop() << 8)) + this.programCounter.set((this.pop() << 8) | this.pop()) } \ No newline at end of file -- cgit 1.4.1-2-gfad0