mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 07:39:56 -06:00
implement block linking + some refactoring
currently only supported for x64
This commit is contained in:
15
src/ARMJIT_x64/ARMJIT_GenOffsets.cpp
Normal file
15
src/ARMJIT_x64/ARMJIT_GenOffsets.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include "../ARM.h"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
FILE* f = fopen("ARMJIT_Offsets.h", "w");
|
||||
#define writeOffset(field) \
|
||||
fprintf(f, "#define ARM_" #field "_offset 0x%x\n", offsetof(ARM, field))
|
||||
|
||||
writeOffset(CPSR);
|
||||
writeOffset(Cycles);
|
||||
writeOffset(StopExecution);
|
||||
|
||||
fclose(f);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user