Skip to content

Commit

Permalink
docs: TODOs, apu info
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanleiby committed Dec 17, 2024
1 parent 7c068b6 commit bb94d38
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
11 changes: 9 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
- [ ] Why are some sprites flipped around?
- [x] Figure out why sprites aren't drawing
- wasn't writing to OAM DMA correctly
- [ ] try out code coverage
- [x] try out code coverage
https://github.com/xd009642/tarpaulin
https://medium.com/@gnanaganesh/robust-rust-how-code-coverage-powers-rust-software-quality-417ef3ac2360
https://blog.balthazar-rouberol.com/measuring-the-coverage-of-a-rust-program-in-github-actions
- [ ] Why are some sprites flipped around?
- [ ] integrate code coverage into CI
- [ ] migrate to bitfields (from bitflags)
- https://docs.rs/bilge/latest/bilge/
- https://gitlab.com/SmartAcoustics/sparrow/-/blob/master/sparrow-bitpacker/src/bitfields.rs
- https://github.com/wrenger/bitfield-struct-rs
- https://github.com/gregorygaines/bitfields-rs

- [ ] Try an external debugger and setting breakpts
- [ ] Debugger view
- show both pattern tables beside the UI
Expand Down
15 changes: 15 additions & 0 deletions src/apu/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# APU - Audio Processing Unit

Another great APU ref:
https://www.slack.net/~ant/nes-emu/apu_ref.txt

Read about relevant synthesis:
https://www.slack.net/~ant/bl-synth/

Deep divin
https://forums.nesdev.org/viewtopic.php?t=8602

Other people asking about APU:
- https://github.com/amhndu/SimpleNES/issues/24
- https://www.reddit.com/r/rust/comments/16kx8i2/how_to_implement_apu_for_my_nes_emulator/
- https://www.reddit.com/r/EmuDev/comments/16kx80n/how_to_implement_apu/
- https://github.com/OneLoneCoder/olcNES/blob/master/Part%20%237%20-%20Mappers%20%26%20Basic%20Sounds/olcNes_Sounds1.cpp

Rust libs:

- synthesis, has osc for common wavs.. will it work well to generate one for each register?
Expand Down
2 changes: 1 addition & 1 deletion src/apu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Apu {
pub fn tick_cpu_cycles(&mut self, cycles: usize) {
for _ in 0..cycles {
self.cpu_cycles += 1;
// or just cpu_cycles %2
// or just `cpu_cycles %2`
self.is_between_apu_cycle = !self.is_between_apu_cycle
}
}
Expand Down

0 comments on commit bb94d38

Please sign in to comment.