Skip to content

Commit 397433c

Browse files
committed
enable prg ram
1 parent c821f8d commit 397433c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/io.asm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ MMC1_CHR1 := $DFFF
4949
MMC3_BANK_SELECT := $8000
5050
MMC3_BANK_DATA := $8001
5151
MMC3_MIRRORING := $A000
52+
MMC3_PRG_RAM := $A001
5253

5354
.macro RESET_MMC1
5455
.if INES_MAPPER = 1

src/reset.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ mmc3Init:
4141
iny
4242
stx MMC3_BANK_SELECT
4343
sty MMC3_BANK_DATA
44+
lda #$80 ; enable PRG RAM
45+
sta MMC3_PRG_RAM
4446
rts
4547
.endif
4648

0 commit comments

Comments
 (0)