aboutsummaryrefslogtreecommitdiff
path: root/src/prng.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/prng.s')
-rw-r--r--src/prng.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prng.s b/src/prng.s
index d62392e..41f5f5d 100644
--- a/src/prng.s
+++ b/src/prng.s
@@ -12,6 +12,8 @@
;; Updates the 'a' register with the next random number set after the
;; current value of `zp_rand`, while also making sure that it is a valid
;; screen Y coordinate.
+ ;;
+ ;; NOTE: the 'y' register is preserved.
.proc random_valid_y_coordinate
;; Get the new random number and store it right away.
ldx zp_rand