From 6ceab24269024f893073ffd9570308e2e78a392c Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 27 Jul 2024 11:17:01 +0200 Subject: [PATCH] Another stab at fixing windows, set stack pointer. --- src/emucore/CartELF.cxx | 1 + src/os/windows/Stella.vcxproj | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emucore/CartELF.cxx b/src/emucore/CartELF.cxx index 48ac1c1bb..df27a6e64 100644 --- a/src/emucore/CartELF.cxx +++ b/src/emucore/CartELF.cxx @@ -447,6 +447,7 @@ void CartridgeELF::jumpToMain() myCortexEmu .setRegister(0, sp ) + .setRegister(13, sp) .setRegister(14, RETURN_ADDR_MAIN) .setRegister(15, myArmEntrypoint); } diff --git a/src/os/windows/Stella.vcxproj b/src/os/windows/Stella.vcxproj index 146b54753..c9c76b36b 100755 --- a/src/os/windows/Stella.vcxproj +++ b/src/os/windows/Stella.vcxproj @@ -796,7 +796,6 @@ - @@ -1675,6 +1674,7 @@ +