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.

1234567891011121314151617181920212223242526
  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. /* Structs */
  7. typedef struct {
  8. uint8_t control_code;
  9. uint16_t control_addr;
  10. bool control_flag;
  11. } VDP;
  12. /* Functions */
  13. void vdp_init(VDP*);
  14. void vdp_free(VDP*);
  15. void vdp_power(VDP*);
  16. uint8_t vdp_read_control(VDP*);
  17. uint8_t vdp_read_data(VDP*);
  18. void vdp_write_control(VDP*, uint8_t);
  19. void vdp_write_data(VDP*, uint8_t);