File tree Expand file tree Collapse file tree 8 files changed +15
-3
lines changed Expand file tree Collapse file tree 8 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ gameMode_gameTypeMenu:
2222 sta tmp3
2323 jsr copyRleNametableToPpuOffset
2424 .addr game_type_menu_nametable_extra
25+ .if INES_MAPPER <> 0
2526 lda #CHRBankSet0
2627 jsr changeCHRBanks
28+ .endif
2729 lda #NMIEnable
2830 sta currentPpuCtrl
2931 jsr waitForVBlankAndEnableNmi
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ gameMode_levelMenu:
77 sta renderMode
88 jsr updateAudioWaitForNmiAndDisablePpuRendering
99 jsr disableNmi
10+ .if INES_MAPPER <> 0
1011 lda #CHRBankSet0
1112 jsr changeCHRBanks
13+ .endif
1214 jsr bulkCopyToPpu
1315 .addr menu_palette
1416 jsr copyRleNametableToPpu
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ gameMode_speedTest:
2323 sta PPUDATA
2424 lda #NMIEnable|BGPattern1|SpritePattern1
2525 sta currentPpuCtrl
26+ .if INES_MAPPER <> 0
2627 lda #CHRBankSet0
2728 jsr changeCHRBanks
29+ .endif
2830
2931 jsr waitForVBlankAndEnableNmi
3032 jsr updateAudioWaitForNmiAndResetOamStaging
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ waitScreenLoad:
1313; and will instead use the title/menu chrset letters. This won't be noticeable
1414; unless a graphic is added
1515 lda #CHRBankSet1
16- .endif
1716 jsr changeCHRBanks
17+ .endif
1818 jsr bulkCopyToPpu
1919 .addr wait_palette
2020 jsr copyRleNametableToPpu
Original file line number Diff line number Diff line change 11gameModeState_initGameBackground:
22 jsr updateAudioWaitForNmiAndDisablePpuRendering
33 jsr disableNmi
4+ .if INES_MAPPER <> 0
45 lda #CHRBankSet0
56 jsr changeCHRBanks
7+ .endif
68 jsr bulkCopyToPpu
79 .addr game_palette
810 jsr copyRleNametableToPpu
Original file line number Diff line number Diff line change @@ -115,8 +115,10 @@ highScoreEntryScreen:
115115 sta renderMode
116116 jsr updateAudioWaitForNmiAndDisablePpuRendering
117117 jsr disableNmi
118+ .if INES_MAPPER <> 0
118119 lda #CHRBankSet0
119120 jsr changeCHRBanks
121+ .endif
120122 lda #NMIEnable
121123 sta PPUCTRL
122124 sta currentPpuCtrl
Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ endingAnimation: ; rocket_screen
7979.if INES_MAPPER <> 0
8080 ; NROM will use a smaller ufo in the game tileset
8181 lda #CHRBankSet1
82- .endif
8382 jsr changeCHRBanks
83+ .endif
8484 lda #NMIEnable
8585 sta currentPpuCtrl
8686 jsr copyRleNametableToPpu
@@ -237,7 +237,7 @@ handleRocket:
237237 lda #>spriteCathedralFire0
238238 sta $1
239239 lda frameCounter
240- .if INES_MAPPER = 0
240+ .if INES_MAPPER = 0
241241 and #8 ; Every 8 frames for ufo
242242.else
243243 and #1 ; Every other frame for cathedral
Original file line number Diff line number Diff line change @@ -33,8 +33,10 @@ reset: cld
3333 txs
3434 jsr mapperInit
3535 jsr setHorizontalMirroring
36+ .if INES_MAPPER <> 0
3637 lda #CHRBankSet0
3738 jsr changeCHRBanks
39+ .endif
3840 jmp initRam
3941
4042.macro setMMC1PRG
You can’t perform that action at this time.
0 commit comments