Earned money in sort proc!

This commit is contained in:
Pecusx
2023-05-11 23:49:17 +02:00
parent cc806b6cc0
commit 663321be99
3 changed files with 4 additions and 4 deletions
+4 -4
View File
@@ -1102,17 +1102,17 @@ nextisequal
nextisequal2 nextisequal2
; if results are equal, check money (H) ; if results are equal, check money (H)
ldy TankSequence,x ldy TankSequence,x
lda moneyH,y lda EarnedMoneyH,y
ldy TankSequence+1,x ldy TankSequence+1,x
cmp moneyH,y cmp EarnedMoneyH,y
bcc nextishigher bcc nextishigher
bne swapvalues bne swapvalues
nextisequal2b nextisequal2b
; if results are equal, check money (L) ; if results are equal, check money (L)
ldy TankSequence,x ldy TankSequence,x
lda moneyL,y lda EarnedMoneyL,y
ldy TankSequence+1,x ldy TankSequence+1,x
cmp moneyL,y cmp EarnedMoneyL,y
; ;
beq nextishigher ; this is to block hangs when 2 equal values meet beq nextishigher ; this is to block hangs when 2 equal values meet
bcc nextishigher bcc nextishigher
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.