An emulator, assembler, and disassembler for the Sega Game Gear
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

26 lignes
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);