From bda4e148192f1bad54a1ecc6ddae612a2dc06c3d Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:49:27 +0100 Subject: [PATCH] Save a single byte assignment in JSR implementation --- M6502/M6502Core.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/M6502/M6502Core.cs b/M6502/M6502Core.cs index 6747f0b..5dbc3af 100644 --- a/M6502/M6502Core.cs +++ b/M6502/M6502Core.cs @@ -1051,8 +1051,8 @@ namespace EightBit this.Intermediate.Low = this.FetchByte(); this.SwallowPop(); this.PushWord(this.PC); - this.Intermediate.High = this.FetchByte(); - this.PC.Assign(this.Intermediate); + this.PC.High = this.FetchByte(); + this.PC.Low = this.Intermediate.Low; } private void PHP() => this.Push(SetBit(this.P, StatusBits.BF));