diff options
| author | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-25 10:20:45 -0400 |
|---|---|---|
| committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-25 10:20:45 -0400 |
| commit | e933fb3639329a40576b2878344d647fe42218cb (patch) | |
| tree | f8895c4009e93f407650d106adc9b586601216da /macros.asm | |
| parent | More code and gfx pointers (diff) | |
| download | pokeyellow-e933fb3639329a40576b2878344d647fe42218cb.tar.gz pokeyellow-e933fb3639329a40576b2878344d647fe42218cb.tar.xz pokeyellow-e933fb3639329a40576b2878344d647fe42218cb.zip | |
More pikachu engine stuff
Diffstat (limited to 'macros.asm')
| -rw-r--r-- | macros.asm | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -758,3 +758,14 @@ ENDC endr db x 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 |
