Optimize CMP instruction using a constant
parent
296a3233c2
commit
6b19efaa2c
|
@ -644,8 +644,7 @@ Down_Dir = %00000100
|
|||
Left_Dir = %00000010
|
||||
Right_Dir = %00000001
|
||||
|
||||
TitleScreenModeValue = 0
|
||||
GameModeValue = 1
|
||||
GameModeValue = 1 ; TitleScreenModeValue = 0 is not needed
|
||||
VictoryModeValue = 2
|
||||
GameOverModeValue = 3
|
||||
|
||||
|
@ -2707,8 +2706,7 @@ ExitOutputN:
|
|||
|
||||
DigitsMathRoutine:
|
||||
lda OperMode ; check mode of operation
|
||||
cmp #TitleScreenModeValue
|
||||
beq EraseDMods ; if in title screen mode, branch to lock score
|
||||
beq EraseDMods ; if in title screen mode, branch to lock score (cmp optimization)
|
||||
ldx #$05
|
||||
AddModLoop:
|
||||
lda DigitModifier,x ; load digit amount to increment
|
||||
|
|
Loading…
Reference in New Issue