mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 20:41:38 +12:00
Finish ELF loading, running actual code now
This commit is contained in:
parent
51689af51f
commit
275c6dfd0c
7 changed files with 135 additions and 59 deletions
|
@ -30,10 +30,7 @@ void Emulator::run() {
|
|||
}
|
||||
|
||||
void Emulator::runFrame() {
|
||||
constexpr u32 freq = 268 * 1024 * 1024;
|
||||
for (u32 i = 0; i < freq; i += 2) {
|
||||
step();
|
||||
}
|
||||
cpu.runFrame();
|
||||
}
|
||||
|
||||
bool Emulator::loadELF(std::filesystem::path& path) {
|
||||
|
@ -41,5 +38,6 @@ bool Emulator::loadELF(std::filesystem::path& path) {
|
|||
if (!entrypoint.has_value())
|
||||
return false;
|
||||
|
||||
Helpers::panic("Entrypoint: %08X\n", entrypoint.value());
|
||||
cpu.setReg(15, entrypoint.value()); // Set initial PC
|
||||
return true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue