summaryrefslogtreecommitdiff
path: root/engine/routines
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-09 16:39:36 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-09 16:39:36 -0500
commit11556196ba546f5c45b97fffc2c263a79eb639b9 (patch)
treebff73d91ac9caba31703b4671db1f0d59524fa3f /engine/routines
parenta849c3557b8ee3dd2b464ccdc646aebd33d7b2a7 (diff)
Consistent sine wave code formatting
Diffstat (limited to 'engine/routines')
-rwxr-xr-xengine/routines/sine.asm4
1 files changed, 1 insertions, 3 deletions
diff --git a/engine/routines/sine.asm b/engine/routines/sine.asm
index 89a905d2e..5f56a10a8 100755
--- a/engine/routines/sine.asm
+++ b/engine/routines/sine.asm
@@ -7,7 +7,6 @@ _Sine:: ; 84d9
and %111111
cp %100000
jr nc, .negative
-
call .ApplySineWave
ld a, h
ret
@@ -16,7 +15,7 @@ _Sine:: ; 84d9
and %011111
call .ApplySineWave
ld a, h
- xor -1
+ xor $ff
inc a
ret
@@ -31,7 +30,6 @@ _Sine:: ; 84d9
inc hl
ld d, [hl]
ld hl, 0
-
; Factor amplitude
.multiply
srl a