set MMC1 to mode 3 at startup

This commit is contained in:
Theron 2020-01-14 23:40:08 -06:00
parent e49921541d
commit c12022e2ed
2 changed files with 2 additions and 2 deletions

View File

@ -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.
<img src="pics/smb.png" width=350> <img src="pics/zelda.png" width=350>
<img src="pics/smb.png" width=350> <img src="pics/zelda_dungeon.png" width=350>
## Controls:
```

View File

@ -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,