mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 20:41:38 +12:00
Implement main thread stack
This commit is contained in:
parent
275c6dfd0c
commit
c33d7e5dfb
3 changed files with 20 additions and 2 deletions
|
@ -38,6 +38,7 @@ bool Emulator::loadELF(std::filesystem::path& path) {
|
|||
if (!entrypoint.has_value())
|
||||
return false;
|
||||
|
||||
cpu.setReg(13, VirtualAddrs::StackTop); // Set initial SP
|
||||
cpu.setReg(15, entrypoint.value()); // Set initial PC
|
||||
return true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue