Skip to content
Snippets Groups Projects
Verified Commit ce6c8df9 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: new dma transfer

parent f85b1b73
No related branches found
No related tags found
1 merge request!3Support for sprites/object drawing 💪
Pipeline #926 failed
...@@ -175,10 +175,9 @@ impl Mmu { ...@@ -175,10 +175,9 @@ impl Mmu {
0x0046 => { 0x0046 => {
// @todo must increment the cycle count by 160 // @todo must increment the cycle count by 160
// and make this a separated dma.rs file // and make this a separated dma.rs file
println!("GOING TO START DMA transfer to 0x{:x}00", value); println!("Going to start DMA transfer to 0x{:x}00", value);
let data = self.read_many((value as u16) << 8, 160); let data = self.read_many((value as u16) << 8, 160);
self.write_many(0xfe00, &data); self.write_many(0xfe00, &data);
println!("FINISHED DMA transfer");
} }
_ => self.ppu.write(addr, value), _ => self.ppu.write(addr, value),
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment