@@ -45,7 +45,7 @@ Value (binary) | Description
45
45
The change of frequency (NR13,NR14) at each shift is calculated by the
46
46
following formula where X(0) is initial freq & X(t-1) is last freq:
47
47
48
- X(t) = X(t-1) +/- X(t-1)/2^n`
48
+ X(t) = X(t-1) +/- X(t-1)/2^n
49
49
50
50
### FF11 - NR11 - Channel 1 Sound length/Wave pattern duty (R/W)
51
51
@@ -82,10 +82,10 @@ Lower 8 bits of 11 bit frequency (x). Next 3 bit are in NR14 ($FF14)
82
82
### FF14 - NR14 - Channel 1 Frequency hi (R/W)
83
83
84
84
```
85
- Bit 7 - Initial (1=Restart Sound) (Write Only)`
86
- Bit 6 - Counter/consecutive selection (Read/Write)`
87
- (1=Stop output when length in NR11 expires)`
88
- Bit 2-0 - Frequency's higher 3 bits (x) (Write Only)`
85
+ Bit 7 - Initial (1=Restart Sound) (Write Only)
86
+ Bit 6 - Counter/consecutive selection (Read/Write)
87
+ (1=Stop output when length in NR11 expires)
88
+ Bit 2-0 - Frequency's higher 3 bits (x) (Write Only)
89
89
```
90
90
91
91
Frequency = 131072/(2048-x) Hz
@@ -98,8 +98,8 @@ have a Tone Envelope/Sweep Register.
98
98
### FF16 - NR21 - Channel 2 Sound Length/Wave Pattern Duty (R/W)
99
99
100
100
```
101
- Bit 7-6 - Wave Pattern Duty (Read/Write)`
102
- Bit 5-0 - Sound length data (Write Only) (t1: 0-63)`
101
+ Bit 7-6 - Wave Pattern Duty (Read/Write)
102
+ Bit 5-0 - Sound length data (Write Only) (t1: 0-63)
103
103
```
104
104
105
105
Bits 7-6 | Wave duty
@@ -115,10 +115,10 @@ Bit 6 in NR24 is set.
115
115
### FF17 - NR22 - Channel 2 Volume Envelope (R/W)
116
116
117
117
```
118
- Bit 7-4 - Initial Volume of envelope (0-0Fh) (0=No Sound)`
119
- Bit 3 - Envelope Direction (0=Decrease, 1=Increase)`
120
- Bit 2-0 - Number of envelope sweep (n: 0-7)`
121
- (If zero, stop envelope operation.)`
118
+ Bit 7-4 - Initial Volume of envelope (0-0Fh) (0=No Sound)
119
+ Bit 3 - Envelope Direction (0=Decrease, 1=Increase)
120
+ Bit 2-0 - Number of envelope sweep (n: 0-7)
121
+ (If zero, stop envelope operation.)
122
122
```
123
123
124
124
Length of 1 step = n\* (1/64) seconds
@@ -131,10 +131,10 @@ Frequency's lower 8 bits of 11 bit data (x). Next 3 bits are in NR24
131
131
### FF19 - NR24 - Channel 2 Frequency hi data (R/W)
132
132
133
133
```
134
- Bit 7 - Initial (1=Restart Sound) (Write Only)`
135
- Bit 6 - Counter/consecutive selection (Read/Write)`
136
- (1=Stop output when length in NR21 expires)`
137
- Bit 2-0 - Frequency's higher 3 bits (x) (Write Only)`
134
+ Bit 7 - Initial (1=Restart Sound) (Write Only)
135
+ Bit 6 - Counter/consecutive selection (Read/Write)
136
+ (1=Stop output when length in NR21 expires)
137
+ Bit 2-0 - Frequency's higher 3 bits (x) (Write Only)
138
138
```
139
139
140
140
Frequency = 131072/(2048-x) Hz
@@ -181,10 +181,10 @@ Lower 8 bits of an 11 bit frequency (x).
181
181
### FF1E - NR34 - Channel 3 Frequency's higher data (R/W)
182
182
183
183
```
184
- Bit 7 - Initial (1=Restart Sound) (Write Only)`
185
- Bit 6 - Counter/consecutive selection (Read/Write)`
186
- (1=Stop output when length in NR31 expires)`
187
- Bit 2-0 - Frequency's higher 3 bits (x) (Write Only)`
184
+ Bit 7 - Initial (1=Restart Sound) (Write Only)
185
+ Bit 6 - Counter/consecutive selection (Read/Write)
186
+ (1=Stop output when length in NR31 expires)
187
+ Bit 2-0 - Frequency's higher 3 bits (x) (Write Only)
188
188
```
189
189
190
190
Frequency = 4194304/(64\* (2048-x)) Hz = 65536/(2048-x) Hz
@@ -229,7 +229,7 @@ Bit 6 in NR44 is set.
229
229
```
230
230
Bit 7-4 - Initial Volume of envelope (0-0Fh) (0=No Sound)
231
231
Bit 3 - Envelope Direction (0=Decrease, 1=Increase)
232
- Bit 2-0 - Number of envelope sweep (n: 0-7)`
232
+ Bit 2-0 - Number of envelope sweep (n: 0-7)
233
233
(If zero, stop envelope operation.)
234
234
```
235
235
0 commit comments