Mercurial > repos > blastem
comparison backend.c @ 1507:2455662378ed mame_interp
Added MAME Z80 core, re-enabled 68K tracing in Musashi core, disabled a bunch of code gen stuff when using interpreters from MAME
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 30 Dec 2017 18:27:06 -0800 |
parents | ded16f3d7eb4 |
children | b7ecd0d6a77b |
comparison
equal
deleted
inserted
replaced
1506:ded16f3d7eb4 | 1507:2455662378ed |
---|---|
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. | 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. |
5 */ | 5 */ |
6 #include "backend.h" | 6 #include "backend.h" |
7 #include <stdlib.h> | 7 #include <stdlib.h> |
8 | 8 |
9 #ifdef USE_NATIVE | |
9 deferred_addr * defer_address(deferred_addr * old_head, uint32_t address, uint8_t *dest) | 10 deferred_addr * defer_address(deferred_addr * old_head, uint32_t address, uint8_t *dest) |
10 { | 11 { |
11 deferred_addr * new_head = malloc(sizeof(deferred_addr)); | 12 deferred_addr * new_head = malloc(sizeof(deferred_addr)); |
12 new_head->next = old_head; | 13 new_head->next = old_head; |
13 new_head->address = address & 0xFFFFFF; | 14 new_head->address = address & 0xFFFFFF; |
48 last_next = &(cur->next); | 49 last_next = &(cur->next); |
49 cur = cur->next; | 50 cur = cur->next; |
50 } | 51 } |
51 } | 52 } |
52 } | 53 } |
54 #endif | |
53 | 55 |
54 memmap_chunk const *find_map_chunk(uint32_t address, cpu_options *opts, uint16_t flags, uint32_t *size_sum) | 56 memmap_chunk const *find_map_chunk(uint32_t address, cpu_options *opts, uint16_t flags, uint32_t *size_sum) |
55 { | 57 { |
56 if (size_sum) { | 58 if (size_sum) { |
57 *size_sum = 0; | 59 *size_sum = 0; |