An emulator, assembler, and disassembler for the Sega Game Gear
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 

27 Zeilen
537 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. /* 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);