summaryrefslogtreecommitdiff
path: root/z80_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'z80_util.c')
-rw-r--r--z80_util.c18
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