From b51fc1b2360dcf006d676b18f6042009e227bba1 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 28 Jan 2019 21:16:41 -0800 Subject: Initial checkin of new WIP Z80 core using CPU DSL --- z80_util.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 z80_util.c (limited to 'z80_util.c') diff --git a/z80_util.c b/z80_util.c new file mode 100644 index 0000000..58f763a --- /dev/null +++ b/z80_util.c @@ -0,0 +1,18 @@ + +void z80_read_8(z80_context *context) +{ + context->scratch1 = read_byte(context->scratch1, NULL, &context->opts->gen, context); +} + +void z80_write_8(z80_context *context) +{ + write_byte(context->scratch2, context->scratch1, NULL, &context->opts->gen, context); +} + +void z80_io_read8(z80_context *context) +{ +} + +void z80_io_write8(z80_context *context) +{ +} \ No newline at end of file -- cgit v1.2.3