mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Manually copy the value when you set up hblank
This commit is contained in:
parent
cdafc3c139
commit
4ebab07d47
|
@ -73,9 +73,11 @@ impl Dma {
|
|||
|
||||
let n_transfers = (size_of::<T>() / 2) as u32;
|
||||
|
||||
self.source_addr.set(handle.data.as_ptr() as u32);
|
||||
self.source_addr.set(handle.data.as_ptr().add(1) as u32);
|
||||
self.dest_addr.set(location.memory_location as u32);
|
||||
|
||||
location.memory_location.write_volatile(values[0]);
|
||||
|
||||
self.ctrl_addr.set(
|
||||
(0b10 << 0x15) | // keep destination address fixed
|
||||
// (0b00 << 0x17) | // increment the source address each time
|
||||
|
|
Loading…
Reference in a new issue