Skip to content

Commit bffaa8e

Browse files
committed
reduce sram size to 2kb
1 parent 68b713e commit bffaa8e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
22
.idea
3+
*.nes

src/cpu/bus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct Bus {
1717
impl Bus {
1818
pub fn new(rom: NesRom) -> Self {
1919
Self {
20-
sram: Ram::new(0x8000),
20+
sram: Ram::new(0x800),
2121
rom: rom.clone(),
2222
prg_ram: Ram::new(0x2000),
2323
ppu: Ppu::new(rom.chr_rom, rom.nametable_mirroring),

0 commit comments

Comments
 (0)