Files
drippu/tools/static_recompiler/out/recompiled.c

17 lines
571 B
C

/* auto-generated by suyu_recomp - DO NOT EDIT */
#include "recomp_runtime.h"
void blk_0000000000001000(GuestContext* c){
c->x[0] = (uint64_t)0x5ULL;
c->x[1] = (uint64_t)0x7ULL;
{ uint64_t _a=c->x[0],_b=c->x[1],_r=_a+_b; c->x[2]=_r; }
c->pc=0x1010ULL; recomp_svc(c,0); return;
}
#include <stdint.h>
struct _ent{uint64_t va; BlockFn fn;};
static const struct _ent _tbl[] = {
{0x1000ULL, blk_0000000000001000},
};
BlockFn recomp_lookup(uint64_t pc){ for(unsigned i=0;i<sizeof(_tbl)/sizeof(_tbl[0]);++i) if(_tbl[i].va==pc) return _tbl[i].fn; return 0; }