An emulator, assembler, and disassembler for the Sega Game Gear
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

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