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.
 
 
 
 
 

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