From c1e02814a8f5dffc8da80c45b96ccbfe92bdfc49 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 12 Feb 2026 22:22:08 +0100 Subject: Initial iteration of enemy movement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For now only the basic algorithm has been written, but the framework for adding the rest has also been written down. Signed-off-by: Miquel Sabaté Solà --- src/prng.s | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/prng.s') 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 -- cgit v1.2.3