mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 14:49:40 +02:00
Sort money
This commit is contained in:
@@ -1097,6 +1097,22 @@ nextisequal
|
|||||||
lda DirectHits,y
|
lda DirectHits,y
|
||||||
ldy TankSequence+1,x
|
ldy TankSequence+1,x
|
||||||
cmp DirectHits,y
|
cmp DirectHits,y
|
||||||
|
bcc nextishigher
|
||||||
|
bne swapvalues
|
||||||
|
nextisequal2
|
||||||
|
; if results are equal, check money (H)
|
||||||
|
ldy TankSequence,x
|
||||||
|
lda moneyH,y
|
||||||
|
ldy TankSequence+1,x
|
||||||
|
cmp moneyH,y
|
||||||
|
bcc nextishigher
|
||||||
|
bne swapvalues
|
||||||
|
nextisequal2b
|
||||||
|
; if results are equal, check money (L)
|
||||||
|
ldy TankSequence,x
|
||||||
|
lda moneyL,y
|
||||||
|
ldy TankSequence+1,x
|
||||||
|
cmp moneyL,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
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user