diff options
author | Bryan Bishop <kanzure@gmail.com> | 2014-05-19 12:21:26 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2014-05-19 12:21:26 -0500 |
commit | 1098c2352e966ce180dc6d224cfe33f946b76d9e (patch) | |
tree | 140ef1db68794415206ecdf04f7e83713517d7f9 /macros.asm | |
parent | 363600f8b4db1c02238e72cff0411f58e534e15c (diff) | |
parent | 67b3a7fc57297d403c71a0882d3336c5a6a02c4f (diff) |
Merge pull request #252 from yenatch/master
Add remaining battle animation data.
Diffstat (limited to 'macros.asm')
-rw-r--r-- | macros.asm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm index a35b833df..a9948ae6a 100644 --- a/macros.asm +++ b/macros.asm @@ -191,3 +191,14 @@ ENDC ENDM +sine_wave: MACRO +; \1: amplitude + +x = 0 + rept $20 + ; Round up. + dw (sin(x) + (sin(x) & $ff)) >> 8 +x = x + \1 * $40000 + endr +ENDM + |