|
123456789101112131415161718192021222324 |
- /* Copyright (C) 2014-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
- Released under the terms of the MIT License. See LICENSE for details. */
-
- #pragma once
-
- #include <stdbool.h>
- #include <stdint.h>
-
- #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*);
- uint8_t io_port_read(IO*, uint8_t);
- void io_port_write(IO*, uint8_t, uint8_t);
|