We can almost load commercial carts now

This commit is contained in:
wheremyfoodat 2022-10-03 19:10:09 +03:00
parent 36b0117ebc
commit 87bf469447
5 changed files with 50 additions and 8 deletions

View file

@ -70,6 +70,12 @@ bool Emulator::loadNCSD(const std::filesystem::path& path) {
}
loadedNCSD = opt.value();
cpu.setReg(15, loadedNCSD.entrypoint);
if (loadedNCSD.entrypoint & 1) {
Helpers::panic("Misaligned NCSD entrypoint; should this start the CPU in Thumb mode?");
}
return true;
}