From c12022e2ed5fc6c25f755916c15e439d2d96f3fc Mon Sep 17 00:00:00 2001 From: Theron Date: Tue, 14 Jan 2020 23:40:08 -0600 Subject: [PATCH] set MMC1 to mode 3 at startup --- README.md | 2 +- src/cartridge/mmc1.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4c77fb6..a8d85db 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is an NES emulator and a work in progress. There are still some minor bugs and the audio is kind of scratchy. I've mostly tested on Donkey Kong, Super Mario Bros., and Zelda so far. There are plenty of full-featured emulators out there; this is primarily an educational project but I do want it to run well. SDL2 is the only dependency, it's NTSC timing, and contains no `unsafe` code. - + ## Controls: ``` diff --git a/src/cartridge/mmc1.rs b/src/cartridge/mmc1.rs index f0e1c60..dde05d1 100644 --- a/src/cartridge/mmc1.rs +++ b/src/cartridge/mmc1.rs @@ -34,7 +34,7 @@ impl Mmc1 { control: 0, prg_ram_bank: vec![0; 0x2000], prg_ram_enabled: false, - prg_bank_mode: 0, + prg_bank_mode: 3, prg_bank_select: 0, chr_ram_bank: vec![0; 0x2000], chr_low_bank: 0,