mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
well, adding shit. laying out the base for the interpreter. really dirty code.
This commit is contained in:
31
ARMInterpreter.cpp
Normal file
31
ARMInterpreter.cpp
Normal file
@ -0,0 +1,31 @@
|
||||
#include <stdio.h>
|
||||
#include "NDS.h"
|
||||
#include "ARMInterpreter.h"
|
||||
#include "ARMInterpreter_Branch.h"
|
||||
|
||||
|
||||
namespace ARMInterpreter
|
||||
{
|
||||
|
||||
|
||||
s32 A_UNK(ARM* cpu)
|
||||
{
|
||||
printf("undefined ARM instruction %08X @ %08X\n", cpu->CurInstr, cpu->R[15]-8);
|
||||
NDS::Halt();
|
||||
return 0x7FFFFFFF;
|
||||
}
|
||||
|
||||
s32 T_UNK(ARM* cpu)
|
||||
{
|
||||
printf("undefined THUMB instruction %04X @ %08X\n", cpu->CurInstr, cpu->R[15]-4);
|
||||
NDS::Halt();
|
||||
return 0x7FFFFFFF;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#define INSTRFUNC_PROTO(x) s32 (*x)(ARM* cpu)
|
||||
#include "ARM_InstrTable.h"
|
||||
#undef INSTRFUNC_PROTO
|
||||
|
||||
}
|
Reference in New Issue
Block a user