aboutsummaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-06 12:06:02 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-06 12:13:00 +0100
commit2f50827c3d2bb48e79f202cd084de08b5ad65732 (patch)
tree3027a753af4ae891d5de4baa997846f11b28f58c /vm.h
parentdd194bf4de0d54cef7e14aeb7576d799acb61840 (diff)
downloadtr8vm-2f50827c3d2bb48e79f202cd084de08b5ad65732.tar.gz
tr8vm-2f50827c3d2bb48e79f202cd084de08b5ad65732.zip
Implement hardware blitter
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm.h b/vm.h
index 4664168..118ea25 100644
--- a/vm.h
+++ b/vm.h
@@ -39,9 +39,10 @@ typedef struct
uint32_t icnt;
void (*write_m)(uint16_t, uint8_t);
uint8_t (*read_m)(uint16_t);
+ uint8_t (*port)(uint8_t, uint8_t);
} Tr8;
-void tr8_init(Tr8 *vm, void (*write_m)(uint16_t, uint8_t), uint8_t (*read_m)(uint16_t));
+void tr8_init(Tr8 *vm, void (*write_m)(uint16_t, uint8_t), uint8_t (*read_m)(uint16_t), uint8_t (*port)(uint8_t, uint8_t));
uint8_t tr8_eval(Tr8 *vm);
uint8_t tr8_frame_int(Tr8 *vm);