Skip to content

Commit e930867

Browse files
committed
Merge branch 'master' of github.com:kirjavascript/TetrisGYM
2 parents 56b7034 + dc01166 commit e930867

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/gamemode/waitscreen.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ waitScreenLoad:
1212
lda #$02
1313
jsr changeCHRBank1
1414
.elseif INES_MAPPER = 3
15+
CNROM_CHR_LEGAL:
16+
lda #0
17+
sta CNROM_CHR_LEGAL+1
1518
lda #%10000000
1619
sta PPUCTRL
1720
sta currentPpuCtrl

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)