You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/playstate/util.asm
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -77,23 +77,35 @@ updatePlayfield:
77
77
sta vramRow
78
78
@ret: rts
79
79
80
+
crunchLeftColumns = generalCounter3
81
+
crunchRightColumns = generalCounter4
82
+
80
83
updateMusicSpeed:
81
-
ldx #$05
82
-
lda multBy10Table,x ;this piece of code is parameterized for no reason but the crash checking code relies on the index being 50-59 so if you ever optimize this part out of the code please also adjust the crash test, specifically the part which handles cycles for allegro.
83
-
tay
84
+
85
+
; ldx #$05
86
+
; lda multBy10Table,x ;this piece of code is parameterized for no reason but the crash checking code relies on the index being 50-59 so if you ever optimize this part out of the code please also adjust the crash test, specifically the part which handles cycles for allegro.
87
+
; tay
88
+
89
+
ldy #50; replaces above
84
90
85
91
; check if crunch mode
86
92
ldx practiseType
87
93
cpx #MODE_CRUNCH
88
94
bne @notCrunch
89
95
90
-
; start at first clear column and repeat only for playable columns
96
+
; add crunch left columns to y
91
97
jsrunpackCrunchModifier
92
98
tya
93
99
clc
94
100
adc crunchLeftColumns ; offset y with left column count (generalCounter3)
95
101
tay
96
-
ldx crunchClearColumns ; generalCounter4
102
+
103
+
; set x to playable column count
104
+
lda #$0A
105
+
sec
106
+
sbc crunchLeftColumns ; generalCounter3
107
+
sbc crunchRightColumns ; generalCounter4
108
+
tax
97
109
bne @checkForBlockInRow ; unconditional, expected range 4 - 10
0 commit comments