Skip to content

Commit

Permalink
Fixed DMC.address_start e DMC.length at power on.
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Jan 12, 2019
1 parent bd15bda commit 8828cd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/apu.c
Expand Up @@ -247,6 +247,11 @@ void apu_turn_on(void) {
DMC.empty = TRUE;
DMC.silence = TRUE;
DMC.counter_out = 8;
// sembra che l'address del DMC al power on dia valorizzato a 0xC000
// e la lunghezza del sample sia settato a 1 byte.
// http://forums.nesdev.com/viewtopic.php?f=3&t=18278
DMC.length = 1;
DMC.address_start = 0xC000;
} else {
S1.output = 0;
S2.output = 0;
Expand Down

0 comments on commit 8828cd0

Please sign in to comment.