From 316fa4b69558a1930a1a1ae44a40221a1ddd4f26 Mon Sep 17 00:00:00 2001 From: Rangi Date: Mon, 19 Apr 2021 16:31:37 -0400 Subject: Use rgbds 0.5.0 --- engine/math/get_square_root.asm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'engine/math/get_square_root.asm') diff --git a/engine/math/get_square_root.asm b/engine/math/get_square_root.asm index 6791fd7b8..e63768547 100644 --- a/engine/math/get_square_root.asm +++ b/engine/math/get_square_root.asm @@ -25,8 +25,6 @@ GetSquareRoot: ret .Squares: -x = 1 -rept NUM_SQUARE_ROOTS - dw x * x -x = x + 1 +for x, 1, NUM_SQUARE_ROOTS + 1 + dw x**2 endr -- cgit v1.2.3