Randomize macro reverted to old version - no Nuclear Winter :)

This commit is contained in:
Pecusx
2022-11-03 18:43:02 +01:00
parent 97d0862a72
commit 1a1761bc4c
5 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -104,7 +104,7 @@
sta :1+1 sta :1+1
.endm .endm
;------------------------------------- ;-------------------------------------
.macro randomizer .macro randomize
;usage: randomize floor ceiling ;usage: randomize floor ceiling
;returns (in A) a random .byte between "floor" and "ceiling" ;returns (in A) a random .byte between "floor" and "ceiling"
.if :2 < :1 .if :2 < :1
+1 -1
View File
@@ -103,7 +103,7 @@
sta :1+1 sta :1+1
.endm .endm
;------------------------------------- ;-------------------------------------
.macro randomizer .macro randomize
;usage: randomize floor ceiling ;usage: randomize floor ceiling
;returns (in A) a random .byte between "floor" and "ceiling" ;returns (in A) a random .byte between "floor" and "ceiling"
.if :2 < :1 .if :2 < :1
+4 -2
View File
@@ -1813,7 +1813,9 @@ noingame
bne @- bne @-
rts rts
.endp .endp
;--------------------------------------------------
/* ;--------------------------------------------------
.macro randomize floor ceiling .macro randomize floor ceiling
;-------------------------------------------------- ;--------------------------------------------------
;usage: randomize floor ceiling ;usage: randomize floor ceiling
@@ -1857,7 +1859,7 @@ noingame
pha pha
tya ; retrieve the result tya ; retrieve the result
rts rts
.endp .endp */
;---------------------------------------------- ;----------------------------------------------
icl 'constants.asm' icl 'constants.asm'
;---------------------------------------------- ;----------------------------------------------
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.