diff options
Diffstat (limited to 'instructions/TSX.ts')
-rw-r--r-- | instructions/TSX.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/instructions/TSX.ts b/instructions/TSX.ts new file mode 100644 index 0000000..d2fc4d3 --- /dev/null +++ b/instructions/TSX.ts @@ -0,0 +1,6 @@ +import type The65c02 from "../65c02.ts"; + +export default function (this: The65c02) { + this.programCounter.increment() + this.regX.set(this.stackPointer.num()) +} \ No newline at end of file |