summaryrefslogtreecommitdiffstats
path: root/tpu.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-07-26 19:38:36 +0200
committerLouis Burda <quent.burda@gmail.com>2023-07-26 19:38:36 +0200
commit0f06ef7127b669207fd8f09b88ecb660b38eb971 (patch)
treed01a688f33f446b3da809f9a154a8748cb5e6506 /tpu.h
parent29465804bb9f3bc0eb0f538ec450e9177c0c4767 (diff)
downloadtis100-0f06ef7127b669207fd8f09b88ecb660b38eb971.tar.gz
tis100-0f06ef7127b669207fd8f09b88ecb660b38eb971.zip
Fix more issues caused by negative literals
Diffstat (limited to 'tpu.h')
-rw-r--r--tpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tpu.h b/tpu.h
index 184ed78..4f6ba11 100644
--- a/tpu.h
+++ b/tpu.h
@@ -1,5 +1,6 @@
#pragma once
+#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -69,6 +70,7 @@ struct tpu_port {
bool clr_post_run;
bool reading, writing;
bool attached;
+ bool in_set, out_set;
int in, out;
};
@@ -137,6 +139,7 @@ struct tpu *tpu_map_get(struct tpu_map *map, int x, int y);
void tis_init(struct tis *tis);
void tis_deinit(struct tis *tis);
bool tis_step(struct tis *tis);
+void tis_communicate(struct tis *tis, FILE *tis_stdin, FILE *tis_stdout);
extern const char *dir_reprs[];
extern const char *status_reprs[];