aboutsummaryrefslogtreecommitdiff
path: root/src/memory.rs
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2017-12-29 17:48:16 +0800
committerDeterminant <ted.sybil@gmail.com>2017-12-29 17:48:16 +0800
commit738882c1eb47778d9513e34a321f669d41b3b4e8 (patch)
tree9e835c4637918d7e3c809f17696aeba720b230b0 /src/memory.rs
parent147d75fca90edd02a4bb3f23ea827006d06fcb48 (diff)
add noise channel
Diffstat (limited to 'src/memory.rs')
-rw-r--r--src/memory.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/memory.rs b/src/memory.rs
index db7b200..6eb796f 100644
--- a/src/memory.rs
+++ b/src/memory.rs
@@ -146,6 +146,9 @@ impl<'a> CPUMemory<'a> {
0x4008 => apu.triangle.write_reg1(data),
0x400a => apu.triangle.write_reg3(data),
0x400b => apu.triangle.write_reg4(data),
+ 0x400c => apu.noise.write_reg1(data),
+ 0x400e => apu.noise.write_reg3(data),
+ 0x400f => apu.noise.write_reg4(data),
0x4015 => apu.write_status(data),
0x4017 => apu.write_frame_counter(data),
0x4014 => ppu.write_oamdma(data, cpu),