/* Copyright (C) 2014-2016 Ben Kurtovic Released under the terms of the MIT License. See LICENSE for details. */ #pragma once #include #include #include "vdp.h" /* Structs */ typedef struct { VDP *vdp; bool except; uint8_t exc_port; } IO; /* Functions */ void io_init(IO*, VDP*); void io_power(IO*); bool io_check_irq(IO*); uint8_t io_port_read(IO*, uint8_t); void io_port_write(IO*, uint8_t, uint8_t);