summaryrefslogtreecommitdiffstats
path: root/tpu.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-07-24 00:43:33 +0200
committerLouis Burda <quent.burda@gmail.com>2023-07-24 00:43:33 +0200
commitd7865d956f9fe3a08ebe4429dce4428a9f74bc6c (patch)
treeafcc976934add55eed727a3f782eea8912646122 /tpu.c
downloadtis100-d7865d956f9fe3a08ebe4429dce4428a9f74bc6c.tar.gz
tis100-d7865d956f9fe3a08ebe4429dce4428a9f74bc6c.zip
Add initial rough outline
Diffstat (limited to 'tpu.c')
-rw-r--r--tpu.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/tpu.c b/tpu.c
new file mode 100644
index 0000000..13a082f
--- /dev/null
+++ b/tpu.c
@@ -0,0 +1,27 @@
+#include "tpu.h"
+
+void
+tpu_init(struct tpu *tpu)
+{
+
+}
+
+void
+tpu_add_inst(struct tpu *tpu, enum tpu_inst_type inst,
+ int op1, uint8_t op1_lit, int op2, uint8_t op2_lit)
+{
+
+}
+
+void
+tpu_step(struct tpu *tpu, uint8_t *up, uint8_t *right,
+ uint8_t *down, uint8_t *left)
+{
+
+}
+
+void
+tpu_deinit(struct tpu *tpu)
+{
+
+}