comparison m68k_core_x86.c @ 590:ea80559c67cb

WIP effort to update z80 core for code gen changes
author Michael Pavone <pavone@retrodev.com>
date Sun, 14 Dec 2014 16:45:23 -0800
parents 2dde38c1744f
children 9853bcce4729
comparison
equal deleted inserted replaced
589:2dde38c1744f 590:ea80559c67cb
2388 pop_r(code, opts->gen.scratch2); 2388 pop_r(code, opts->gen.scratch2);
2389 pop_r(code, opts->gen.scratch1); 2389 pop_r(code, opts->gen.scratch1);
2390 *skip_sync = code->cur - (skip_sync+1); 2390 *skip_sync = code->cur - (skip_sync+1);
2391 retn(code); 2391 retn(code);
2392 2392
2393 opts->read_16 = gen_mem_fun(&opts->gen, memmap, num_chunks, READ_16); 2393 opts->gen.handle_code_write = (code_ptr)m68k_handle_code_write;
2394 opts->read_8 = gen_mem_fun(&opts->gen, memmap, num_chunks, READ_8); 2394
2395 opts->write_16 = gen_mem_fun(&opts->gen, memmap, num_chunks, WRITE_16); 2395 opts->read_16 = gen_mem_fun(&opts->gen, memmap, num_chunks, READ_16, NULL);
2396 opts->write_8 = gen_mem_fun(&opts->gen, memmap, num_chunks, WRITE_8); 2396 opts->read_8 = gen_mem_fun(&opts->gen, memmap, num_chunks, READ_8, NULL);
2397 opts->write_16 = gen_mem_fun(&opts->gen, memmap, num_chunks, WRITE_16, NULL);
2398 opts->write_8 = gen_mem_fun(&opts->gen, memmap, num_chunks, WRITE_8, NULL);
2397 2399
2398 opts->read_32 = code->cur; 2400 opts->read_32 = code->cur;
2399 push_r(code, opts->gen.scratch1); 2401 push_r(code, opts->gen.scratch1);
2400 call(code, opts->read_16); 2402 call(code, opts->read_16);
2401 mov_rr(code, opts->gen.scratch1, opts->gen.scratch2, SZ_W); 2403 mov_rr(code, opts->gen.scratch1, opts->gen.scratch2, SZ_W);