Fix copy-paste bug from previous commit
Former-commit-id: 849acd1852bbe3126a6dde0f21c9754b364e24cb Former-commit-id: 31e837d620cb0858aec4ddf3c133c254bbc1f1b7
This commit is contained in:
parent
309ae2f795
commit
948bac03a2
|
@ -245,7 +245,7 @@ impl Bus for Gpu {
|
|||
|
||||
let page = (addr >> 24) as usize;
|
||||
match page {
|
||||
PAGE_PALRAM => self.oam.write_16(addr & 0x3fe, expand_value(value)),
|
||||
PAGE_PALRAM => self.palette_ram.write_16(addr & 0x3fe, expand_value(value)),
|
||||
PAGE_VRAM => {
|
||||
let mut ofs = addr & ((VIDEO_RAM_SIZE as u32) - 1);
|
||||
if ofs > 0x18000 {
|
||||
|
|
|
@ -4,7 +4,6 @@ use std::ops::{Deref, DerefMut};
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use super::cartridge::Cartridge;
|
||||
use super::gpu::VIDEO_RAM_SIZE;
|
||||
use super::iodev::{IoDevices, WaitControl};
|
||||
use super::{Addr, Bus};
|
||||
|
||||
|
|
Reference in a new issue