Randomize optimize :)

This commit is contained in:
Pecusx
2023-08-24 22:20:32 +02:00
parent 8fc08f2746
commit 08130aa714
8 changed files with 24 additions and 24 deletions
+4 -3
View File
@@ -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