Skip to content

Commit

Permalink
Usa DMA constant
Browse files Browse the repository at this point in the history
  • Loading branch information
joajfreitas committed Aug 26, 2024
1 parent 76be9af commit eaa6b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpt/src/memory/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl Bus {
.write(address, value);
} else if map::IO_REGISTERS.contains(&address) {
self.memory_mut().mem[address as Address] = value;
if address == 0xFF46 {
if address == map::DMA {
// dma transfer takes time, we do it instantaneously
let oam_data =
self.copy_range(value as usize * 0x100..value as usize * 0x100 + 0x0A0);
Expand Down

0 comments on commit eaa6b88

Please sign in to comment.