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