summaryrefslogtreecommitdiff
path: root/engine/math/get_square_root.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-04-19 16:31:37 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-04-19 16:31:37 -0400
commit316fa4b69558a1930a1a1ae44a40221a1ddd4f26 (patch)
tree4706eaec78ee5706e16e944eba4abfe1e7316168 /engine/math/get_square_root.asm
parent35219230960f0dc85c0cb6a5723877b247609e46 (diff)
Use rgbds 0.5.0
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