comparison z80_to_x86.h @ 213:4d4559b04c59

Make reset trigger debug exit to make it easier to test the same cases in blastem and musashi. Fix asl #1 overflow flag.
author Mike Pavone <pavone@retrodev.com>
date Tue, 16 Apr 2013 22:29:00 -0700
parents
children d9bf8e61c33c
comparison
equal deleted inserted replaced
212:e657a99b5abf 213:4d4559b04c59
1 #ifndef Z80_TO_X86_H_
2 #define Z80_TO_X86_H_
3 #include "z80inst.h"
4 #include "x86_backend.h"
5
6 #define ZNUM_MEM_AREAS 4
7
8 enum {
9 ZF_C = 0,
10 ZF_N,
11 ZF_PV,
12 ZF_H,
13 ZF_Z,
14 ZF_S,
15 ZF_NUM
16 };
17
18 typedef struct {
19 uint32_t flags;
20 int8_t regs[Z80_UNUSED];
21 } x86_z80_options;
22
23 typedef struct {
24 void * native_pc;
25 uint16_t sp;
26 uint8_t flags[ZF_NUM];
27 uint16_t bank_reg;
28 uint8_t regs[Z80_A+1];
29 uint8_t alt_regs[Z80_A+1];
30 uint8_t * mem_pointers[ZNUM_MEM_AREAS];
31 native_map_slot * native_code_map;
32 void * options
33 void * next_context;
34 } z80_context;
35
36 void translate_z80_stream(z80_context * context, uint16_t address);
37
38 #endif //Z80_TO_X86_H_
39