summary refs log tree commit diff
path: root/instructions
diff options
context:
space:
mode:
Diffstat (limited to 'instructions')
-rw-r--r--instructions/RTS.ts2
1 files changed, 1 insertions, 1 deletions
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