Skip to content
Snippets Groups Projects
Verified Commit 3928e4f1 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: small comment issue

parent 6ed522d3
No related branches found
No related tags found
1 merge request!19Initial tentative audio support 🔉
Pipeline #2262 failed
...@@ -52,6 +52,10 @@ impl Apu { ...@@ -52,6 +52,10 @@ impl Apu {
pub fn clock(&mut self, cycles: u8) { pub fn clock(&mut self, cycles: u8) {
// @todo implement the clock and allow for the proper // @todo implement the clock and allow for the proper
// writing of the output buffer at a fixed frequency // writing of the output buffer at a fixed frequency
} }
pub fn read(&mut self, addr: u16) -> u8 { pub fn read(&mut self, addr: u16) -> u8 {
...@@ -66,7 +70,7 @@ impl Apu { ...@@ -66,7 +70,7 @@ impl Apu {
pub fn write(&mut self, addr: u16, value: u8) { pub fn write(&mut self, addr: u16, value: u8) {
match addr { match addr {
// 0xFF10 — NR10: Channel 1 length timer & duty cycle // 0xFF10 — NR10: Channel 1 sweep
0xff10 => { 0xff10 => {
self.ch1_sweep_slope = value & 0x03; self.ch1_sweep_slope = value & 0x03;
self.ch1_sweep_increase = value & 0x04 == 0x04; self.ch1_sweep_increase = value & 0x04 == 0x04;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment