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.
 
 
 
 
 

23 lines
444 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 <stdint.h>
  5. /* Structs */
  6. typedef struct {
  7. uint16_t tone1, tone2, tone3;
  8. uint8_t vol1, vol2, vol3;
  9. uint8_t noise;
  10. } PSG;
  11. /* Functions */
  12. void psg_init(PSG*);
  13. void psg_free(PSG*);
  14. void psg_power(PSG*);
  15. void psg_write(PSG*, uint8_t);
  16. void psg_stereo(PSG*, uint8_t);