summary refs log tree commit diff
path: root/instructions
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2025-04-03 11:39:20 +0300
committerWlodekM <[email protected]>2025-04-03 11:39:20 +0300
commit8005bf4f12c6f9315d269905cc2de32bf6182513 (patch)
tree4099c9253290da1e083f07dd400eca3dc7134a9d /instructions
parent8702826717b3e916ef774004c4de99b96d04ddff (diff)
fix rts
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