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.
 
 
 
 
 

27 lines
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);