diff options
Diffstat (limited to 'tpu.c')
| -rw-r--r-- | tpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |
