summaryrefslogtreecommitdiff
path: root/apu.c
diff options
context:
space:
mode:
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]) {