fix write to rom errors... for now
This commit is contained in:
parent
121129fe35
commit
c131791608
1 changed files with 2 additions and 2 deletions
|
@ -96,8 +96,8 @@ impl Memory {
|
|||
fn set(&mut self, address: Address, data: u8) {
|
||||
match address {
|
||||
0x0..0x8000 => {
|
||||
panic!("tried to write to rom?");
|
||||
// self.rom[address as usize] = data;
|
||||
// change this with MBC code...
|
||||
println!("tried to write to rom?");
|
||||
}
|
||||
0x8000..0xA000 => {
|
||||
self.vram[(address - 0x8000) as usize] = data;
|
||||
|
|
Loading…
Add table
Reference in a new issue