fill BIOS exception vectors with undef opcode when no BIOSes are found
This commit is contained in:
parent
50d2ffb207
commit
bde9e7dfed
10
src/NDS.cpp
10
src/NDS.cpp
|
@ -238,7 +238,12 @@ void Reset()
|
||||||
|
|
||||||
f = fopen("bios9.bin", "rb");
|
f = fopen("bios9.bin", "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
|
{
|
||||||
printf("ARM9 BIOS not found\n");
|
printf("ARM9 BIOS not found\n");
|
||||||
|
|
||||||
|
for (i = 0; i < 16; i++)
|
||||||
|
((u32*)ARM9BIOS)[i] = 0xE7FFDEFF;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fseek(f, 0, SEEK_SET);
|
fseek(f, 0, SEEK_SET);
|
||||||
|
@ -250,7 +255,12 @@ void Reset()
|
||||||
|
|
||||||
f = fopen("bios7.bin", "rb");
|
f = fopen("bios7.bin", "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
|
{
|
||||||
printf("ARM7 BIOS not found\n");
|
printf("ARM7 BIOS not found\n");
|
||||||
|
|
||||||
|
for (i = 0; i < 16; i++)
|
||||||
|
((u32*)ARM7BIOS)[i] = 0xE7FFDEFF;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fseek(f, 0, SEEK_SET);
|
fseek(f, 0, SEEK_SET);
|
||||||
|
|
Loading…
Reference in New Issue