summaryrefslogtreecommitdiffstats
path: root/tpu.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-02-18 17:46:52 +0100
committerLouis Burda <quent.burda@gmail.com>2024-02-18 17:46:52 +0100
commit43d3b0d3b62e306ced4a5020dcaf732cae20f268 (patch)
tree880c864f9db59bf1a49074776ee68ab5982639f6 /tpu.c
parent11d75bf41c7d22b6a6a76fa2dd4843d23a75fffb (diff)
downloadtis100-master.tar.gz
tis100-master.zip
Add io port label to curses tuiHEADmaster
Diffstat (limited to 'tpu.c')
-rw-r--r--tpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tpu.c b/tpu.c
index 3a62e11..4d1c566 100644
--- a/tpu.c
+++ b/tpu.c
@@ -142,6 +142,7 @@ tpu_port_init(struct tpu_port *port, struct tpu *tpu)
port->in = -1;
port->writing = false;
port->out = -1;
+ port->io = false;
}
void
@@ -181,6 +182,7 @@ tpu_io_port_init(struct tpu_io_port *io_port, char c, enum tpu_port_dir dir,
enum tpu_port_type type, int x, int y)
{
tpu_port_init(&io_port->port, NULL);
+ io_port->port.io = io_port;
io_port->io_step = 0;
io_port->type = type;
io_port->file = NULL;