comparison gen_x86.c @ 1082:2ec5e6eaf81d

Add support for specifying a reset handler in the M68K core. Adjust memory map initialization to handle extra field. Improved handling of out of bounds execution.
author Michael Pavone <pavone@retrodev.com>
date Thu, 06 Oct 2016 09:34:31 -0700
parents cd6048e0397b
children 0649cd8ca097
comparison
equal deleted inserted replaced
1081:89cc20cf1ad3 1082:2ec5e6eaf81d
2136 if (adjust) { 2136 if (adjust) {
2137 add_ir(code, adjust, RSP, SZ_PTR); 2137 add_ir(code, adjust, RSP, SZ_PTR);
2138 code->stack_off -= adjust; 2138 code->stack_off -= adjust;
2139 } 2139 }
2140 } 2140 }
2141
2142 void call_args_r(code_info *code, uint8_t fun_reg, uint32_t num_args, ...)
2143 {
2144 va_list args;
2145 va_start(args, num_args);
2146 uint32_t adjust = prep_args(code, num_args, args);
2147 va_end(args);
2148 call_r(code, fun_reg);
2149 if (adjust) {
2150 add_ir(code, adjust, RSP, SZ_PTR);
2151 code->stack_off -= adjust;
2152 }
2153 }
2141 /* 2154 /*
2142 void call_args_abi(code_info *code, code_ptr fun, uint32_t num_args, ...) 2155 void call_args_abi(code_info *code, code_ptr fun, uint32_t num_args, ...)
2143 { 2156 {
2144 va_list args; 2157 va_list args;
2145 va_start(args, num_args); 2158 va_start(args, num_args);