blob: 9696d220473ec3834c096eacc9bfced00c72c1b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
|