Skip to content

Commit

Permalink
Implement decrementing DMA transfer direction
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Nov 27, 2023
1 parent de3464c commit 94be55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snes/bus/mainbus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ where
let a_addr = match self.dma[ch].step() {
DMAStep::Increment => self.dma[ch].a_addr() + i,
DMAStep::Fixed => self.dma[ch].a_addr(),
_ => todo!(),
DMAStep::Decrement => self.dma[ch].a_addr() - i,
};

self.dma_transfer_step(ch, a_addr, b_addr, i);
Expand Down

0 comments on commit 94be55a

Please sign in to comment.