From d5d5e11b5d93b718cb89131c704705c71b7976b7 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Wed, 26 Dec 2012 11:09:04 -0800 Subject: Initial stab at interrupt support. Make native code offsets bigger so I don't have to worry about overflowing the offset. Implement neg and not (untested). --- m68k_to_x86.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'm68k_to_x86.h') diff --git a/m68k_to_x86.h b/m68k_to_x86.h index 35a593d..12d4f8b 100644 --- a/m68k_to_x86.h +++ b/m68k_to_x86.h @@ -4,11 +4,11 @@ #define NUM_MEM_AREAS 4 #define NATIVE_MAP_CHUNKS (32*1024) #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)/2) -#define INVALID_OFFSET 0xFFFF +#define INVALID_OFFSET 0xFFFFFFFF typedef struct { uint8_t *base; - uint16_t *offsets; + int32_t *offsets; } native_map_slot; typedef struct deferred_addr { @@ -35,9 +35,12 @@ typedef struct { uint32_t target_cycle; //cycle at which the next synchronization or interrupt occurs uint32_t current_cycle; uint32_t sync_cycle; + uint32_t int_cycle; + uint32_t int_num; uint16_t *mem_pointers[NUM_MEM_AREAS]; void *next_context; uint16_t value; + native_map_slot *native_code_map; void *options; } m68k_context; -- cgit v1.2.3