Skip to content

Commit

Permalink
Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrakisk committed Dec 5, 2024
1 parent 8cc49a5 commit 108575e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ppu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl PPU {
}

pub fn dma_write(&mut self, data: &[u8]) {
assert!(data.len() == 256);
self.oam_ram.clone_from_slice(data);
}

Expand Down

0 comments on commit 108575e

Please sign in to comment.