Mercurial > repos > blastem
comparison z80_to_x86.c @ 660:e7cae6d9aaa6
Add the 3 cycle delay back in to Z80 bank area access
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 01 Jan 2015 22:18:32 -0800 |
parents | 759c38bf97f8 |
children | 66388360f873 |
comparison
equal
deleted
inserted
replaced
659:759c38bf97f8 | 660:e7cae6d9aaa6 |
---|---|
2221 mov_irdisp(code, 0, options->gen.context_reg, offsetof(z80_context, extra_pc), SZ_PTR); | 2221 mov_irdisp(code, 0, options->gen.context_reg, offsetof(z80_context, extra_pc), SZ_PTR); |
2222 *no_extra = code->cur - (no_extra + 1); | 2222 *no_extra = code->cur - (no_extra + 1); |
2223 jmp_rind(code, options->gen.context_reg); | 2223 jmp_rind(code, options->gen.context_reg); |
2224 } | 2224 } |
2225 | 2225 |
2226 void * z80_gen_bank_write(uint32_t start_address, void * voptions) | |
2227 { | |
2228 z80_options * options = voptions; | |
2229 //TODO: Handle writes to bank register | |
2230 return options; | |
2231 } | |
2232 | |
2233 void init_z80_context(z80_context * context, z80_options * options) | 2226 void init_z80_context(z80_context * context, z80_options * options) |
2234 { | 2227 { |
2235 memset(context, 0, sizeof(*context)); | 2228 memset(context, 0, sizeof(*context)); |
2236 context->static_code_map = malloc(sizeof(*context->static_code_map)); | 2229 context->static_code_map = malloc(sizeof(*context->static_code_map)); |
2237 context->static_code_map->base = NULL; | 2230 context->static_code_map->base = NULL; |