From 412b2ef851516c1de8ba5006ddd284192cbcaf9b Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Sun, 8 Jun 2025 17:32:05 +0200 Subject: tests --- apu.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'apu.c') 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]) { -- cgit v1.2.3