From adda4044ca66c1c04744988b2531cdbe50fb8bd6 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Mon, 24 Jul 2023 22:23:37 +0200 Subject: [PATCH] Complete value forwardign abs,x and abs,y --- oscar64/NativeCodeGenerator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oscar64/NativeCodeGenerator.cpp b/oscar64/NativeCodeGenerator.cpp index 74b5984..8bd9f33 100644 --- a/oscar64/NativeCodeGenerator.cpp +++ b/oscar64/NativeCodeGenerator.cpp @@ -3932,6 +3932,7 @@ bool NativeCodeInstruction::ValueForwarding(NativeRegisterDataSet& data, AsmInsT { mType = ASMIT_TAY; mMode = ASMIM_IMPLIED; + data.mRegs[CPU_REG_Y] = data.mRegs[CPU_REG_A]; changed = true; } else @@ -3995,6 +3996,7 @@ bool NativeCodeInstruction::ValueForwarding(NativeRegisterDataSet& data, AsmInsT { mType = ASMIT_TAX; mMode = ASMIM_IMPLIED; + data.mRegs[CPU_REG_X] = data.mRegs[CPU_REG_A]; changed = true; } else