Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/gameboy/apu/square2/square2.hpp
2 views
1
struct Square2 {
2
bool enable;
3
4
uint2 duty;
5
unsigned length;
6
uint4 envelope_volume;
7
bool envelope_direction;
8
uint3 envelope_frequency;
9
uint11 frequency;
10
bool counter;
11
12
int16 output;
13
bool duty_output;
14
uint3 phase;
15
unsigned period;
16
uint3 envelope_period;
17
uint4 volume;
18
19
bool dac_enable();
20
21
void run();
22
void clock_length();
23
void clock_envelope();
24
void write(unsigned r, uint8 data);
25
void power();
26
void serialize(serializer&);
27
};
28
29