Skip to content

Commit aaf4092

Browse files
committed
changelow stack value to be height
1 parent 04e806a commit aaf4092

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## 6.0.0
3+
## [v6]
44
* Crunch Trainer
55
* Marathon Trainer
66
* Low Stack Trainer
@@ -31,7 +31,6 @@
3131
* NROM Support
3232
* MMC3 Support
3333
* MMC5 Support
34-
* Switch to semantic versioning
3534

3635
## [v5 tournament]
3736
* Linecap Menu (from CTM Masters September 2022)

src/constants.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ MENU_TOP_MARGIN_SCROLL := 7 ; in blocks
149149
.byte $4 ; MODE_GARBAGE
150150
.byte $12 ; MODE_DROUGHT
151151
.byte $10 ; MODE_DAS
152-
.byte $0F ; MODE_LOWSTACK
152+
.byte $12 ; MODE_LOWSTACK
153153
.byte $0 ; MODE_KILLX2
154154
.byte $0 ; MODE_INVISIBLE
155155
.byte $0 ; MODE_HARDDROP

src/nmi/render_util.asm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ vramPlayfieldRows:
6666
.word $22CC,$22EC,$230C,$232C
6767

6868
copyLowStackRowToVram:
69-
lda lowStackRowModifier
69+
sec
70+
lda #19
71+
sbc lowStackRowModifier
72+
; lda lowStackRowModifier
7073
asl
7174
tax
7275
lda vramPlayfieldRows+1,x

src/playstate/lock.asm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ playState_lockTetrimino:
8585
bcc @notAboveLowStack
8686
ldx #<lowStackNopeGraphic
8787
ldy #>lowStackNopeGraphic
88-
lda lowStackRowModifier
88+
sec
89+
lda #19
90+
sbc lowStackRowModifier
8991
cmp #$09
9092
bcs @drawOnUpperHalf
9193
; draw on lower half

src/playstate/util.asm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ updateMusicSpeed:
116116

117117
checkIfAboveLowStackLine:
118118
; carry set - block found
119-
ldx lowStackRowModifier
119+
sec
120+
lda #19
121+
sbc lowStackRowModifier
122+
tax
120123
lda multBy10Table,x
121124
tay
122125
ldx #$0A

0 commit comments

Comments
 (0)