mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Randomize optimize :)
This commit is contained in:
+4
-3
@@ -252,10 +252,11 @@ upstartEnd
|
||||
.endif
|
||||
?rand
|
||||
lda random
|
||||
cmp #:1 ;floor
|
||||
bcc ?rand
|
||||
cmp #:2+1 ;ceiling
|
||||
cmp #:2+1-:1 ;ceiling
|
||||
bcs ?rand
|
||||
.if %1>0 ; if floor = 0 - no add offset
|
||||
adc #:1
|
||||
.endif
|
||||
.endm
|
||||
;-------------------------------------
|
||||
.macro phx
|
||||
|
||||
Reference in New Issue
Block a user