An emulator, assembler, and disassembler for the Sega Game Gear
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
473 B

  1. /* Copyright (C) 2014-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
  2. Released under the terms of the MIT License. See LICENSE for details. */
  3. #pragma once
  4. #include <stdbool.h>
  5. #include <stdint.h>
  6. #include "vdp.h"
  7. /* Structs */
  8. typedef struct {
  9. VDP *vdp;
  10. bool except;
  11. uint8_t exc_port;
  12. } IO;
  13. /* Functions */
  14. void io_init(IO*, VDP*);
  15. void io_power(IO*);
  16. bool io_check_irq(IO*);
  17. uint8_t io_port_read(IO*, uint8_t);
  18. void io_port_write(IO*, uint8_t, uint8_t);