Skip to content

Commit 20bd9c7

Browse files
Merge pull request #38 from zohassadar/mmc3_adjust
krzysiocart fix for mmc3
2 parents 89f0475 + bf3d4eb commit 20bd9c7

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/reset.asm

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
; incremented to reset MMC1 reg
2-
reset: cld
2+
reset:
3+
.if INES_MAPPER = 4
4+
ldy #$00
5+
ldx #$06
6+
stx MMC3_BANK_SELECT
7+
sty MMC3_BANK_DATA
8+
inx
9+
iny
10+
stx MMC3_BANK_SELECT
11+
sty MMC3_BANK_DATA
12+
lda #$00
13+
stx MMC3_BANK_SELECT
14+
.endif
15+
cld
316
sei
417
ldx #$00
518
stx PPUCTRL
@@ -12,7 +25,9 @@ reset: cld
1225
bpl @vsyncWait2
1326
dex
1427
txs
28+
.if INES_MAPPER <> 4
1529
inc reset
30+
.endif
1631
lda #$10
1732
jsr setMMC1Control
1833
lda #$00

0 commit comments

Comments
 (0)