summaryrefslogtreecommitdiff
path: root/engine/math/get_square_root.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/math/get_square_root.asm')
-rw-r--r--engine/math/get_square_root.asm6
1 files changed, 2 insertions, 4 deletions
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