comparison m68k_core_x86.c @ 657:92ce5ea5ffc9

Use call_args and call_args_abi in Z80 core
author Michael Pavone <pavone@retrodev.com>
date Thu, 01 Jan 2015 20:07:47 -0800
parents 24ccfd70133a
children d0943769353b
comparison
equal deleted inserted replaced
656:24ccfd70133a 657:92ce5ea5ffc9
2164 code->cur = bp_stub; 2164 code->cur = bp_stub;
2165 2165
2166 //Save context and call breakpoint handler 2166 //Save context and call breakpoint handler
2167 call(code, opts->gen.save_context); 2167 call(code, opts->gen.save_context);
2168 push_r(code, opts->gen.scratch1); 2168 push_r(code, opts->gen.scratch1);
2169 call_args(code, bp_handler, 2, opts->gen.context_reg, opts->gen.scratch1); 2169 call_args_abi(code, bp_handler, 2, opts->gen.context_reg, opts->gen.scratch1);
2170 mov_rr(code, RAX, opts->gen.context_reg, SZ_PTR); 2170 mov_rr(code, RAX, opts->gen.context_reg, SZ_PTR);
2171 //Restore context 2171 //Restore context
2172 call(code, opts->gen.load_context); 2172 call(code, opts->gen.load_context);
2173 pop_r(code, opts->gen.scratch1); 2173 pop_r(code, opts->gen.scratch1);
2174 //do prologue stuff 2174 //do prologue stuff