FeOS_ConsoleMode() causes armcpu_exception
mtheall opened this issue · comments
In my Anagrams FeOS app, when you press B to exit and after memory cleanup, calling FeOS_ConsoleMode() causes
ARM9: Undefined instruction: 0xE106414D (00100000100) PC=0x1EDF8FC4
armcpu_exception!
If I remove the call to FeOS_ConsoleMode() and just use "return 0", then the whole app freezes (no undefined instruction or cpu exception).
I was getting a freeze on hardware previously, but now it does not appear to freeze.
This is the minimal case to cause this freeze in desmume:
#include <feos.h>
int main(int argc, char *argv[]) {
FeOS_ConsoleMode();
return 0;
}
It freezes in the same part as my filebrowser does. You could arguably say "This isn't valid unless you are in direct mode." But this code also causes the same freeze:
#include <feos.h>
int main(int argc, char *argv[]) {
FeOS_DirectMode();
FeOS_ConsoleMode();
return 0;
}
I still cannot reproduce this and the code works on real hardware, so I'm closing this issue.