aboutsummaryrefslogtreecommitdiff
path: root/src-z80/player/misc.z80
diff options
context:
space:
mode:
authorJavier Degirolmo2011-10-07 12:17:54 -0300
committerJavier Degirolmo2011-10-07 12:17:54 -0300
commit178968cc2fc4c32fb918ebb4ccd24d78b64cd73f (patch)
treed8cb1d39bd1991258ffe45b4bcc498b0443e4b35 /src-z80/player/misc.z80
Initial upload, Echo 0.8 UNSTABLE VERSION
Diffstat (limited to 'src-z80/player/misc.z80')
-rw-r--r--src-z80/player/misc.z8031
1 files changed, 31 insertions, 0 deletions
diff --git a/src-z80/player/misc.z80 b/src-z80/player/misc.z80
new file mode 100644
index 0000000..6373ab0
--- /dev/null
+++ b/src-z80/player/misc.z80
@@ -0,0 +1,31 @@
+;****************************************************************************
+; SetDelay* [event $FE]
+; Adds a delay in playback
+;****************************************************************************
+
+SetDelaySFX:
+ call SetDelay ; We're just a wrapper
+ jp DoTick_SFXSkip ; End of subroutine
+
+SetDelayBGM:
+ call SetDelay ; We're just a wrapper
+ jp DoTick_BGMSkip ; End of subroutine
+
+SetDelay:
+ PollPCM
+ call GetParam ; Get delay
+ PollPCM
+
+ ex de, hl
+ ld (hl), d ; Store new address
+ dec l
+ ld (hl), e
+ dec l
+ ld (hl), c
+
+ PollPCM
+
+ dec l ; Store new delay
+ ld (hl), b
+
+ ret ; End of subroutine