Mercurial > repos > blastem
comparison z80_to_x86.h @ 2675:dbff641a33df
Implement Z80/PSG clock speed test register bit
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 14 Mar 2025 01:18:11 -0700 |
parents | c97609fe8315 |
children |
comparison
equal
deleted
inserted
replaced
2674:07cc0f7109f0 | 2675:dbff641a33df |
---|---|
50 code_ptr read_16; | 50 code_ptr read_16; |
51 code_ptr write_16_highfirst; | 51 code_ptr write_16_highfirst; |
52 code_ptr write_16_lowfirst; | 52 code_ptr write_16_lowfirst; |
53 code_ptr read_io; | 53 code_ptr read_io; |
54 code_ptr write_io; | 54 code_ptr write_io; |
55 memmap_chunk const *io_memmap; | |
56 uint32_t io_memmap_chunks; | |
55 | 57 |
56 uint32_t flags; | 58 uint32_t flags; |
59 uint16_t io_address_mask; | |
57 int8_t regs[Z80_UNUSED]; | 60 int8_t regs[Z80_UNUSED]; |
58 z80_ctx_fun run; | 61 z80_ctx_fun run; |
59 } z80_options; | 62 } z80_options; |
60 | 63 |
61 struct z80_context { | 64 struct z80_context { |
113 code_ptr z80_get_native_address(z80_context * context, uint32_t address); | 116 code_ptr z80_get_native_address(z80_context * context, uint32_t address); |
114 code_ptr z80_get_native_address_trans(z80_context * context, uint32_t address); | 117 code_ptr z80_get_native_address_trans(z80_context * context, uint32_t address); |
115 z80_context * z80_handle_code_write(uint32_t address, z80_context * context); | 118 z80_context * z80_handle_code_write(uint32_t address, z80_context * context); |
116 void z80_invalidate_code_range(z80_context *context, uint32_t start, uint32_t end); | 119 void z80_invalidate_code_range(z80_context *context, uint32_t start, uint32_t end); |
117 void z80_reset(z80_context * context); | 120 void z80_reset(z80_context * context); |
121 void z80_clock_divider_updated(z80_options *options); | |
118 void zinsert_breakpoint(z80_context * context, uint16_t address, uint8_t * bp_handler); | 122 void zinsert_breakpoint(z80_context * context, uint16_t address, uint8_t * bp_handler); |
119 void zremove_breakpoint(z80_context * context, uint16_t address); | 123 void zremove_breakpoint(z80_context * context, uint16_t address); |
120 void z80_add_watchpoint(z80_context *context, uint16_t address, uint16_t size); | 124 void z80_add_watchpoint(z80_context *context, uint16_t address, uint16_t size); |
121 void z80_remove_watchpoint(z80_context *context, uint32_t address, uint32_t size); | 125 void z80_remove_watchpoint(z80_context *context, uint32_t address, uint32_t size); |
122 void z80_run(z80_context * context, uint32_t target_cycle); | 126 void z80_run(z80_context * context, uint32_t target_cycle); |