comparison z80_to_x86.h @ 735:539d12fa6a4d

Add a define in both the source and Makefile for enabling logging of z80 instruction address/cycle counts. Fix Z80 in/out instructions to eliminate assumptions about which registers are stored in native regs. Fix read_16 to not corrupt the low byte when the read has to call into a C function.
author Michael Pavone <pavone@retrodev.com>
date Mon, 25 May 2015 18:56:22 -0700
parents 7ed1dbb48f61
children ab017fb09e77
comparison
equal deleted inserted replaced
734:e21c274a008e 735:539d12fa6a4d
7 #define Z80_TO_X86_H_ 7 #define Z80_TO_X86_H_
8 #include "z80inst.h" 8 #include "z80inst.h"
9 #include "backend.h" 9 #include "backend.h"
10 10
11 #define ZNUM_MEM_AREAS 4 11 #define ZNUM_MEM_AREAS 4
12 #ifdef Z80_LOG_ADDRESS
13 #define ZMAX_NATIVE_SIZE 255
14 #else
12 #define ZMAX_NATIVE_SIZE 128 15 #define ZMAX_NATIVE_SIZE 128
16 #endif
13 17
14 enum { 18 enum {
15 ZF_C = 0, 19 ZF_C = 0,
16 ZF_N, 20 ZF_N,
17 ZF_PV, 21 ZF_PV,