summaryrefslogtreecommitdiff
path: root/apu.c
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-06-08 17:32:05 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-06-08 17:32:05 +0200
commit412b2ef851516c1de8ba5006ddd284192cbcaf9b (patch)
treee8b68d60125bf89e375ec9acc4e7833825abbfaa /apu.c
parent6dd73982c514445c4d2a4787c37666d0812a3dad (diff)
tests
Diffstat (limited to 'apu.c')
-rw-r--r--apu.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/apu.c b/apu.c
index 0c16123..46a484d 100644
--- a/apu.c
+++ b/apu.c
@@ -66,6 +66,7 @@ static void apu_write(struct nes_state *state, uint16_t addr, uint8_t val) {
// APU tick
static inline void apu_tick(struct nes_state *state) {
+ return;
struct apu_state *apu = &state->apu;
apu->frame_cycle++;
@@ -103,31 +104,6 @@ static inline void apu_tick(struct nes_state *state) {
}
}
- // if(apu->mode == 0) {
- // if(apu->frame_cycle == 7457 || apu->frame_cycle == 14913 || apu->frame_cycle == 22371) {
- // // Quarter frame
- // }
- // if(apu->frame_cycle == 14913 || apu->frame_cycle == 29829) {
- // // Half frame
- // }
- // if(apu->frame_cycle == 29829 && !apu->irq_inhibit) {
- // apu->irq_pending = 1;
- // }
- // if(apu->frame_cycle >= 29830) {
- // apu->frame_cycle = 0;
- // }
- // } else {
- // if(apu->frame_cycle == 7457 || apu->frame_cycle == 14913 || apu->frame_cycle == 22371 || apu->frame_cycle == 37281) {
- // // Quarter frame
- // }
- // if(apu->frame_cycle == 14913 || apu->frame_cycle == 29829) {
- // // Half frame
- // }
- // if(apu->frame_cycle >= 37282) {
- // apu->frame_cycle = 0;
- // }
- // }
-
if(apu->dmc_dma_enabled && apu->dmc_bytes_remaining > 0) {
apu->dmc_sample_timer++;
if(apu->dmc_sample_timer >= dmc_rate_table[apu->dmc_freq_index]) {