diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-07-26 19:38:36 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-07-26 19:38:36 +0200 |
| commit | 0f06ef7127b669207fd8f09b88ecb660b38eb971 (patch) | |
| tree | d01a688f33f446b3da809f9a154a8748cb5e6506 /tpu.h | |
| parent | 29465804bb9f3bc0eb0f538ec450e9177c0c4767 (diff) | |
| download | tis100-0f06ef7127b669207fd8f09b88ecb660b38eb971.tar.gz tis100-0f06ef7127b669207fd8f09b88ecb660b38eb971.zip | |
Fix more issues caused by negative literals
Diffstat (limited to 'tpu.h')
| -rw-r--r-- | tpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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[]; |
