diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-01-28 21:16:41 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-01-28 21:16:41 -0800 |
commit | b51fc1b2360dcf006d676b18f6042009e227bba1 (patch) | |
tree | ceede79ca85aad5b38aad3d6215977db00de098a /z80_util.c | |
parent | 8e5cb9d205e58ed143f058e0305748f363d440db (diff) |
Initial checkin of new WIP Z80 core using CPU DSL
Diffstat (limited to 'z80_util.c')
-rw-r--r-- | z80_util.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 |