summaryrefslogtreecommitdiffstats
path: root/tpu.c
diff options
context:
space:
mode:
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;