An emulator, assembler, and disassembler for the Sega Game Gear
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122
  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);