From cec2dc2b9f2598cdf341627fe2ab91c37d637eac Mon Sep 17 00:00:00 2001 From: WlodekM Date: Wed, 2 Apr 2025 21:12:13 +0300 Subject: yea --- instructions/JSR.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'instructions/JSR.ts') diff --git a/instructions/JSR.ts b/instructions/JSR.ts index 59d95d8..5614d9b 100644 --- a/instructions/JSR.ts +++ b/instructions/JSR.ts @@ -2,6 +2,7 @@ import type The65c02 from "../65c02.ts"; export default function (this: The65c02, mode: string) { const location = this.getAddr(mode, ['absolute']); - this.push(this.programCounter.num()) + this.push(this.programCounter.num() & 0x00FF) + this.push(this.programCounter.num() & 0xFF00) this.programCounter.set(location) } \ No newline at end of file -- cgit 1.4.1-2-gfad0