Mercurial > repos > blastem
comparison gen.h @ 656:24ccfd70133a
Added 2 new functions to gen_x86.c for handling passing args according to the C abi of the host system and adapted the code in m68k_core_x86.c to use that instead of doing everything by hand
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 01 Jan 2015 19:15:05 -0800 |
parents | 98927f1b005b |
children | d0943769353b |
comparison
equal
deleted
inserted
replaced
655:38006d43f5a3 | 656:24ccfd70133a |
---|---|
21 | 21 |
22 void init_code_info(code_info *code); | 22 void init_code_info(code_info *code); |
23 void call(code_info *code, code_ptr fun); | 23 void call(code_info *code, code_ptr fun); |
24 void jmp(code_info *code, code_ptr dest); | 24 void jmp(code_info *code, code_ptr dest); |
25 void jmp_r(code_info *code, uint8_t dst); | 25 void jmp_r(code_info *code, uint8_t dst); |
26 //call a function and put the arguments in the appropriate place according to the host ABI | |
27 void call_args(code_info *code, code_ptr fun, uint32_t num_args, ...); | |
28 //like the above, but follows other aspects of the ABI like stack alignment | |
29 void call_args_abi(code_info *code, code_ptr fun, uint32_t num_args, ...); | |
26 | 30 |
27 #endif //GEN_H_ | 31 #endif //GEN_H_ |