mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
implement LDR/STR/LDRB/STRB.
more macro soup.
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#include "ARMInterpreter.h"
|
||||
#include "ARMInterpreter_ALU.h"
|
||||
#include "ARMInterpreter_Branch.h"
|
||||
#include "ARMInterpreter_LoadStore.h"
|
||||
|
||||
|
||||
namespace ARMInterpreter
|
||||
@ -11,7 +12,7 @@ namespace ARMInterpreter
|
||||
|
||||
s32 A_UNK(ARM* cpu)
|
||||
{
|
||||
printf("undefined ARM instruction %08X @ %08X\n", cpu->CurInstr, cpu->R[15]-8);
|
||||
printf("undefined ARM%d instruction %08X @ %08X\n", cpu->Num?7:9, cpu->CurInstr, cpu->R[15]-8);
|
||||
for (int i = 0; i < 16; i++) printf("R%d: %08X\n", i, cpu->R[i]);
|
||||
NDS::Halt();
|
||||
return 0x7FFFFFFF;
|
||||
@ -19,7 +20,7 @@ s32 A_UNK(ARM* cpu)
|
||||
|
||||
s32 T_UNK(ARM* cpu)
|
||||
{
|
||||
printf("undefined THUMB instruction %04X @ %08X\n", cpu->CurInstr, cpu->R[15]-4);
|
||||
printf("undefined THUMB%d instruction %04X @ %08X\n", cpu->Num?7:9, cpu->CurInstr, cpu->R[15]-4);
|
||||
NDS::Halt();
|
||||
return 0x7FFFFFFF;
|
||||
}
|
||||
|
Reference in New Issue
Block a user