fix vram dma
This commit is contained in:
parent
224c850a7d
commit
59d52ee92f
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ impl VramDma {
|
|||
match address.inner() {
|
||||
0xFF51 => self.source.set_high(data),
|
||||
0xFF52 => self.source.set_low(data & 0xF0),
|
||||
0xFF53 => self.destination.set_high((data & 0b11111) | (0b1 << 7)),
|
||||
0xFF53 => self.destination.set_high((data & 0x1F) | 0x80),
|
||||
0xFF54 => self.destination.set_low(data & 0xF0),
|
||||
0xFF55 => {
|
||||
let num = data & !(0b1 << 7);
|
||||
|
@ -123,7 +123,7 @@ where
|
|||
};
|
||||
if let Some((source, dest, length)) = copy {
|
||||
for i in 0..length {
|
||||
self.set(source + i, self.get(dest + i));
|
||||
self.set(dest + i, self.get(source + i));
|
||||
}
|
||||
}
|
||||
if self.is_double_speed() {
|
||||
|
|
Loading…
Add table
Reference in a new issue