summaryrefslogtreecommitdiff
path: root/home/sine.asm
diff options
context:
space:
mode:
authorlibjet <libj3t@gmail.com>2020-03-16 00:44:13 +0000
committerlibjet <libj3t@gmail.com>2020-03-16 00:44:13 +0000
commit6231351906960364a5ad2f34efefd809cceb0eb8 (patch)
tree709f2f908d9e1c2f7a882d628ff09b80de3c9e8b /home/sine.asm
parent4ad17cc30e6b70be19badd175558c438fc9adaf6 (diff)
Sync home/ with pokecrystal
Diffstat (limited to 'home/sine.asm')
-rw-r--r--home/sine.asm9
1 files changed, 6 insertions, 3 deletions
diff --git a/home/sine.asm b/home/sine.asm
index 5965d497..821f7c47 100644
--- a/home/sine.asm
+++ b/home/sine.asm
@@ -1,6 +1,9 @@
-Cosine:: ; 19ac (0:19ac)
- add $10
+Cosine::
+; a = d * cos(a * pi/32)
+ add %010000 ; cos(x) = sin(x + pi/2)
+ ; fallthrough
Sine::
+; a = d * sin(a * pi/32)
ld e, a
- homecall Sine_e
+ homecall _Sine
ret