Mercurial > repos > blastem
comparison m68k_to_x86.c @ 555:5af986d2b9da
Start work on refactoring some of the backend code to allow more sharing between M68K and Z80 cores and possibly also between x86 and the ARM backend when it exists
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 24 Feb 2014 00:39:02 -0800 |
parents | 96489fb27dbf |
children | acec5464fa1e |
comparison
equal
deleted
inserted
replaced
554:474270dbff15 | 555:5af986d2b9da |
---|---|
4342 //TODO: Make this actually use the normal read functions | 4342 //TODO: Make this actually use the normal read functions |
4343 context->aregs[7] = context->mem_pointers[0][0] << 16 | context->mem_pointers[0][1]; | 4343 context->aregs[7] = context->mem_pointers[0][0] << 16 | context->mem_pointers[0][1]; |
4344 uint32_t address = context->mem_pointers[0][2] << 16 | context->mem_pointers[0][3]; | 4344 uint32_t address = context->mem_pointers[0][2] << 16 | context->mem_pointers[0][3]; |
4345 start_68k_context(context, address); | 4345 start_68k_context(context, address); |
4346 } | 4346 } |
4347 | |
4348 typedef enum { | |
4349 READ_16, | |
4350 READ_8, | |
4351 WRITE_16, | |
4352 WRITE_8 | |
4353 } ftype; | |
4354 | 4347 |
4355 uint8_t * gen_mem_fun(x86_68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks, ftype fun_type) | 4348 uint8_t * gen_mem_fun(x86_68k_options * opts, memmap_chunk * memmap, uint32_t num_chunks, ftype fun_type) |
4356 { | 4349 { |
4357 uint8_t * dst = opts->cur_code; | 4350 uint8_t * dst = opts->cur_code; |
4358 uint8_t * start = dst; | 4351 uint8_t * start = dst; |