comparison backend.h @ 1692:5dacaef602a7 segacd

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Jan 2019 00:58:08 -0800
parents 360d5bab199f
children b7ecd0d6a77b 49a52c737bf0
comparison
equal deleted inserted replaced
1504:95b3a1a8b26c 1692:5dacaef602a7
38 struct deferred_addr *next; 38 struct deferred_addr *next;
39 code_ptr dest; 39 code_ptr dest;
40 uint32_t address; 40 uint32_t address;
41 } deferred_addr; 41 } deferred_addr;
42 42
43 typedef enum { 43 #include "memmap.h"
44 READ_16,
45 READ_8,
46 WRITE_16,
47 WRITE_8
48 } ftype;
49
50 #define MMAP_READ 0x01
51 #define MMAP_WRITE 0x02
52 #define MMAP_CODE 0x04
53 #define MMAP_PTR_IDX 0x08
54 #define MMAP_ONLY_ODD 0x10
55 #define MMAP_ONLY_EVEN 0x20
56 #define MMAP_FUNC_NULL 0x40
57 #define MMAP_BYTESWAP 0x80
58 #define MMAP_AUX_BUFF 0x100
59
60 typedef uint16_t (*read_16_fun)(uint32_t address, void * context);
61 typedef uint8_t (*read_8_fun)(uint32_t address, void * context);
62 typedef void * (*write_16_fun)(uint32_t address, void * context, uint16_t value);
63 typedef void * (*write_8_fun)(uint32_t address, void * context, uint8_t value);
64
65 typedef struct {
66 uint32_t start;
67 uint32_t end;
68 uint32_t mask;
69 uint32_t aux_mask;
70 uint16_t ptr_index;
71 uint16_t flags;
72 void * buffer;
73 read_16_fun read_16;
74 write_16_fun write_16;
75 read_8_fun read_8;
76 write_8_fun write_8;
77 } memmap_chunk;
78
79 #include "system.h" 44 #include "system.h"
80 45
81 typedef struct { 46 typedef struct {
82 uint32_t flags; 47 uint32_t flags;
83 native_map_slot *native_code_map; 48 native_map_slot *native_code_map;