This commit is contained in:
2022-07-03 23:35:06 -04:00
parent 39433a8cf4
commit bb70b2495a
5 changed files with 29 additions and 6 deletions
+3
View File
@@ -104,6 +104,9 @@
.macro randomize
;usage: randomize floor ceiling
;returns (in A) a random .byte between "floor" and "ceiling"
.if :2 < :1
.error "floor higher than ceiling"
.endif
?rand
lda random
cmp #:1 ;floor