Mercurial > repos > blastem
comparison z80_to_x86.h @ 667:30ccf56842d6
All cycle counters are now based off the master clock. This seems to have messed up Z80 interrupt timing (music in Sonic 2 is too slow for instance), but things are generally working
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 03 Jan 2015 16:08:23 -0800 |
parents | 66388360f873 |
children | 5439ae7946ca |
comparison
equal
deleted
inserted
replaced
666:b68039895627 | 667:30ccf56842d6 |
---|---|
1 /* | 1 /* |
2 Copyright 2013 Michael Pavone | 2 Copyright 2013 Michael Pavone |
3 This file is part of BlastEm. | 3 This file is part of BlastEm. |
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. | 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. |
5 */ | 5 */ |
6 #ifndef Z80_TO_X86_H_ | 6 #ifndef Z80_TO_X86_H_ |
7 #define Z80_TO_X86_H_ | 7 #define Z80_TO_X86_H_ |
8 #include "z80inst.h" | 8 #include "z80inst.h" |
80 uint8_t * interp_code[256]; | 80 uint8_t * interp_code[256]; |
81 | 81 |
82 } z80_context; | 82 } z80_context; |
83 | 83 |
84 void translate_z80_stream(z80_context * context, uint32_t address); | 84 void translate_z80_stream(z80_context * context, uint32_t address); |
85 void init_z80_opts(z80_options * options, memmap_chunk const * chunks, uint32_t num_chunks); | 85 void init_z80_opts(z80_options * options, memmap_chunk const * chunks, uint32_t num_chunks, uint32_t clock_divider); |
86 void init_z80_context(z80_context * context, z80_options * options); | 86 void init_z80_context(z80_context * context, z80_options * options); |
87 code_ptr z80_get_native_address(z80_context * context, uint32_t address); | 87 code_ptr z80_get_native_address(z80_context * context, uint32_t address); |
88 code_ptr z80_get_native_address_trans(z80_context * context, uint32_t address); | 88 code_ptr z80_get_native_address_trans(z80_context * context, uint32_t address); |
89 z80_context * z80_handle_code_write(uint32_t address, z80_context * context); | 89 z80_context * z80_handle_code_write(uint32_t address, z80_context * context); |
90 void z80_run(z80_context * context); | 90 void z80_run(z80_context * context); |