Mercurial > repos > blastem
diff z80_util.c @ 1715:4fd84c3efc72
Implement 16-bit addition in new Z80 core along with necessary CPU DSL fixes to make them work right
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 29 Jan 2019 23:56:48 -0800 |
parents | c2324849a5e5 |
children | ca2336469397 |
line wrap: on
line diff
--- a/z80_util.c Tue Jan 29 22:17:15 2019 -0800 +++ b/z80_util.c Tue Jan 29 23:56:48 2019 -0800 @@ -1,11 +1,13 @@ void z80_read_8(z80_context *context) { + context->cycles += 3 * context->opts->gen.clock_divider; context->scratch1 = read_byte(context->scratch1, NULL, &context->opts->gen, context); } void z80_write_8(z80_context *context) { + context->cycles += 3 * context->opts->gen.clock_divider; write_byte(context->scratch2, context->scratch1, NULL, &context->opts->gen, context); }