File tree Expand file tree Collapse file tree 2 files changed +4
-33
lines changed Expand file tree Collapse file tree 2 files changed +4
-33
lines changed Original file line number Diff line number Diff line change @@ -96,18 +96,10 @@ pause:
96
96
lda newlyPressedButtons_player1
97
97
cmp #$10
98
98
beq @resume
99
- @stayPaused:
100
99
jsr updateAudioWaitForNmiAndResetOamStaging
101
100
jmp @pauseLoop
102
101
103
102
@resume:
104
- ; Stay paused if invalid debug position
105
- lda debugFlag
106
- beq @validPosition
107
- jsr isPositionValid
108
- beq @validPosition
109
- jmp @stayPaused
110
- @validPosition:
111
103
lda #$1E
112
104
sta PPUMASK
113
105
lda #$00
Original file line number Diff line number Diff line change @@ -39,11 +39,6 @@ debugSelectMenuControls:
39
39
lda debugLevelEdit
40
40
eor #1
41
41
sta debugLevelEdit
42
- ; Don't switch if invalid position
43
- bne @skipDebugType
44
- jsr isPositionValid
45
- beq @skipDebugType
46
- inc debugLevelEdit
47
42
@skipDebugType:
48
43
49
44
jsr checkSaveStateControlsDebug
@@ -113,37 +108,21 @@ debugContinue:
113
108
jsr menuThrottle
114
109
beq @notPressedUp
115
110
dec tetriminoY
116
- bpl @notPressedUp
117
- lda #$13
118
- sta tetriminoY
119
111
@notPressedUp:
120
112
lda #BUTTON_DOWN
121
113
jsr menuThrottle
122
114
beq @notPressedDown
123
115
inc tetriminoY
124
- lda tetriminoY
125
- cmp #$14
126
- bne @notPressedDown
127
- lda #$00
128
- sta tetriminoY
129
116
@notPressedDown:
130
117
lda #BUTTON_LEFT
131
118
jsr menuThrottle
132
119
beq @notPressedLeft
133
120
dec tetriminoX
134
- bpl @notPressedLeft
135
- lda #$09
136
- sta tetriminoX
137
121
@notPressedLeft:
138
122
lda #BUTTON_RIGHT
139
123
jsr menuThrottle
140
124
beq @notPressedRight
141
125
inc tetriminoX
142
- lda tetriminoX
143
- cmp #$0A
144
- bne @notPressedRight
145
- lda #$00
146
- sta tetriminoX
147
126
@notPressedRight:
148
127
149
128
; check mode
@@ -170,17 +149,17 @@ debugContinue:
170
149
@notPressedBothA:
171
150
172
151
; change current piece
173
- lda newlyPressedButtons_player1
174
- and #BUTTON_B
152
+ lda #BUTTON_B
153
+ jsr menuThrottle
175
154
beq @notPressedB
176
155
dec currentPiece
177
156
bpl @notPressedB
178
157
lda #$12
179
158
sta currentPiece
180
159
@notPressedB:
181
160
182
- lda newlyPressedButtons_player1
183
- and #BUTTON_A
161
+ lda #BUTTON_A
162
+ jsr menuThrottle
184
163
beq @notPressedA
185
164
inc currentPiece
186
165
lda currentPiece
You can’t perform that action at this time.
0 commit comments