diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-05 12:28:09 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-05 12:28:09 +0100 |
| commit | e0af8de6421a891ff1e7ed7c049abbc1074b48c9 (patch) | |
| tree | 139746dd7f62583bb42f9ba602e61a385a49c614 /src/wrapped/generated/wrapper.c | |
| parent | f0883cd465445e9ab07f2e1d33515eda1635fa38 (diff) | |
| download | box64-e0af8de6421a891ff1e7ed7c049abbc1074b48c9.tar.gz box64-e0af8de6421a891ff1e7ed7c049abbc1074b48c9.zip | |
Added putchar wrapped function
Diffstat (limited to 'src/wrapped/generated/wrapper.c')
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index eda14bda..e80c2f78 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -73,6 +73,7 @@ typedef void (*vFE_t)(x64emu_t*); typedef void (*vFv_t)(void); typedef void (*vFp_t)(void*); typedef int32_t (*iFE_t)(x64emu_t*); +typedef int32_t (*iFi_t)(int32_t); typedef int32_t (*iFu_t)(uint32_t); typedef int32_t (*iFp_t)(void*); typedef intptr_t (*lFp_t)(void*); @@ -105,6 +106,7 @@ void vFE(x64emu_t *emu, uintptr_t fcn) { vFE_t fn = (vFE_t)fcn; fn(emu); } void vFv(x64emu_t *emu, uintptr_t fcn) { vFv_t fn = (vFv_t)fcn; fn(); } void vFp(x64emu_t *emu, uintptr_t fcn) { vFp_t fn = (vFp_t)fcn; fn((void*)R_RDI); } void iFE(x64emu_t *emu, uintptr_t fcn) { iFE_t fn = (iFE_t)fcn; R_RAX=fn(emu); } +void iFi(x64emu_t *emu, uintptr_t fcn) { iFi_t fn = (iFi_t)fcn; R_RAX=fn((int32_t)R_RDI); } void iFu(x64emu_t *emu, uintptr_t fcn) { iFu_t fn = (iFu_t)fcn; R_RAX=fn((uint32_t)R_RDI); } void iFp(x64emu_t *emu, uintptr_t fcn) { iFp_t fn = (iFp_t)fcn; R_RAX=fn((void*)R_RDI); } void lFp(x64emu_t *emu, uintptr_t fcn) { lFp_t fn = (lFp_t)fcn; R_RAX=(intptr_t)fn((void*)R_RDI); } |