@@ -137,7 +137,7 @@ generalCounter2 := $00A9
137
137
generalCounter3 := $00AA
138
138
generalCounter4 := $00AB
139
139
generalCounter5 := $00AC
140
- selectingLevelOrHeight : = $00AD ; 0-level, 1-height
140
+ positionValidTmp : = $00AD ; 0-level, 1-height
141
141
originalY := $00AE
142
142
dropSpeed := $00AF
143
143
tmpCurrentPiece := $00B0 ; Only used as a temporary
@@ -154,7 +154,7 @@ renderMode := $00BD
154
154
; numberOfPlayers := $00BE
155
155
nextPiece := $00BF ; Stored by its orientation ID
156
156
gameMode := $00C0 ; 0=legal, 1=title, 2=type menu, 3=level menu, 4=play and ending and high score, 5=demo, 6=start demo
157
- gameType := $00C1 ; A=0, B=1
157
+ ; gameType := $00C1 ; A=0, B=1
158
158
musicType := $00C2 ; 0-3; 3 is off
159
159
sleepCounter := $00C3 ; canon is legalScreenCounter1
160
160
@@ -2103,12 +2103,12 @@ isPositionValid:
2103
2103
adc generalCounter4
2104
2104
clc
2105
2105
adc generalCounter
2106
- sta selectingLevelOrHeight
2106
+ sta positionValidTmp
2107
2107
inx
2108
2108
inx
2109
2109
lda orientationTable,x
2110
2110
clc
2111
- adc selectingLevelOrHeight
2111
+ adc positionValidTmp
2112
2112
tay
2113
2113
lda (playfieldAddr),y
2114
2114
cmp #$EF
@@ -2747,14 +2747,14 @@ playState_lockTetrimino:
2747
2747
adc generalCounter4
2748
2748
clc
2749
2749
adc generalCounter
2750
- sta selectingLevelOrHeight
2750
+ sta positionValidTmp
2751
2751
inx
2752
2752
lda orientationTable,x
2753
2753
sta generalCounter5
2754
2754
inx
2755
2755
lda orientationTable,x
2756
2756
clc
2757
- adc selectingLevelOrHeight
2757
+ adc positionValidTmp
2758
2758
tay
2759
2759
lda generalCounter5
2760
2760
; BLOCK_TILES
@@ -2963,30 +2963,7 @@ playState_updateLinesAndStatistics:
2963
2963
lda outOfDateRenderFlags
2964
2964
ora #$01
2965
2965
sta outOfDateRenderFlags
2966
- lda gameType
2967
- beq @gameTypeA
2968
- lda completedLines
2969
- sta generalCounter
2970
- lda lines
2971
- sec
2972
- sbc generalCounter
2973
- sta lines
2974
- bpl @checkForBorrow
2975
- lda #$00
2976
- sta lines
2977
- jmp addHoldDownPoints
2978
2966
2979
- @checkForBorrow:
2980
- and #$0F
2981
- cmp #$0A
2982
- bmi addHoldDownPoints
2983
- lda lines
2984
- sec
2985
- sbc #$06
2986
- sta lines
2987
- jmp addHoldDownPoints
2988
-
2989
- @gameTypeA:
2990
2967
ldx completedLines
2991
2968
incrementLines:
2992
2969
inc lines
@@ -3311,8 +3288,6 @@ demoButtonsTable_indexIncr:
3311
3288
rts
3312
3289
3313
3290
gameMode_startDemo:
3314
- lda #$00
3315
- sta gameType
3316
3291
sta startLevel
3317
3292
sta gameModeState
3318
3293
sta playState
@@ -3368,10 +3343,6 @@ MMC1_Control := * + 1
3368
3343
.addr high_scores_nametable
3369
3344
lda #$00
3370
3345
sta generalCounter2
3371
- lda gameType
3372
- beq @copyEntry
3373
- lda #$04
3374
- sta generalCounter2
3375
3346
@copyEntry:
3376
3347
lda generalCounter2
3377
3348
and #$03
@@ -3460,10 +3431,6 @@ byteToBcdTable:
3460
3431
handleHighScoreIfNecessary:
3461
3432
lda #$00
3462
3433
sta highScoreEntryRawPos
3463
- lda gameType
3464
- beq @compareWithPos
3465
- lda #$04
3466
- sta highScoreEntryRawPos
3467
3434
@compareWithPos:
3468
3435
lda highScoreEntryRawPos
3469
3436
sta generalCounter2
@@ -3551,13 +3518,6 @@ adjustHighScores:
3551
3518
; reg a: start byte to copy
3552
3519
copyHighScoreNameToNextIndex:
3553
3520
sta generalCounter
3554
- lda gameType
3555
- beq @offsetAdjustedForGameType
3556
- lda #$18
3557
- clc
3558
- adc generalCounter
3559
- sta generalCounter
3560
- @offsetAdjustedForGameType:
3561
3521
lda #$05
3562
3522
sta generalCounter2
3563
3523
@copyLetter:
@@ -3582,13 +3542,6 @@ copyHighScoreNameToNextIndex:
3582
3542
; reg a: start byte to copy
3583
3543
copyHighScoreScoreToNextIndex:
3584
3544
tax
3585
- lda gameType
3586
- beq @xAdjustedForGameType
3587
- txa
3588
- clc
3589
- adc #$0C
3590
- tax
3591
- @xAdjustedForGameType:
3592
3545
lda highScoreScoresA,x
3593
3546
sta highScoreScoresA+3 ,x
3594
3547
inx
@@ -3602,13 +3555,6 @@ copyHighScoreScoreToNextIndex:
3602
3555
; reg a: start byte to copy
3603
3556
copyHighScoreLevelToNextIndex:
3604
3557
tax
3605
- lda gameType
3606
- beq @xAdjustedForGameType
3607
- txa
3608
- clc
3609
- adc #$04
3610
- tax
3611
- @xAdjustedForGameType:
3612
3558
lda highScoreLevels,x
3613
3559
sta highScoreLevels+1 ,x
3614
3560
rts
0 commit comments