comparison m68k_to_x86.h @ 193:c66e4636f991

Implement support for self-modifying code
author Mike Pavone <pavone@retrodev.com>
date Tue, 15 Jan 2013 00:14:36 -0800
parents 1db07e112bf7
children 7c227a8ec53d
comparison
equal deleted inserted replaced
192:1db07e112bf7 193:c66e4636f991
3 3
4 #define NUM_MEM_AREAS 4 4 #define NUM_MEM_AREAS 4
5 #define NATIVE_MAP_CHUNKS (64*1024) 5 #define NATIVE_MAP_CHUNKS (64*1024)
6 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)/2) 6 #define NATIVE_CHUNK_SIZE ((16 * 1024 * 1024 / NATIVE_MAP_CHUNKS)/2)
7 #define INVALID_OFFSET 0xFFFFFFFF 7 #define INVALID_OFFSET 0xFFFFFFFF
8 #define EXTENSION_WORD 0xFFFFFFFE
9 #define MAX_NATIVE_SIZE 255
8 10
9 #define OPT_NATIVE_CALL_STACK 0x1 11 #define OPT_NATIVE_CALL_STACK 0x1
10 12
11 typedef struct { 13 typedef struct {
12 uint8_t *base; 14 uint8_t *base;