fill BIOS exception vectors with undef opcode when no BIOSes are found

This commit is contained in:
StapleButter 2017-05-09 04:52:17 +02:00
parent 50d2ffb207
commit bde9e7dfed
1 changed files with 10 additions and 0 deletions

View File

@ -238,7 +238,12 @@ void Reset()
f = fopen("bios9.bin", "rb");
if (!f)
{
printf("ARM9 BIOS not found\n");
for (i = 0; i < 16; i++)
((u32*)ARM9BIOS)[i] = 0xE7FFDEFF;
}
else
{
fseek(f, 0, SEEK_SET);
@ -250,7 +255,12 @@ void Reset()
f = fopen("bios7.bin", "rb");
if (!f)
{
printf("ARM7 BIOS not found\n");
for (i = 0; i < 16; i++)
((u32*)ARM7BIOS)[i] = 0xE7FFDEFF;
}
else
{
fseek(f, 0, SEEK_SET);