diff options
| author | sik | 2017-03-05 20:57:11 -0300 |
|---|---|---|
| committer | sik | 2017-03-05 20:57:11 -0300 |
| commit | a679ba38190bfed6ae150a12e819ad7527c495d1 (patch) | |
| tree | ea4b189bce2732032998027f5dbcb75a1c0eea1d /src-z80/player/pcm.z80 | |
| parent | 2ad500e6d8a24ca09cbfc6618aea9c1cd3cc0e93 (diff) | |
Upgrade!
Diffstat (limited to 'src-z80/player/pcm.z80')
| -rw-r--r-- | src-z80/player/pcm.z80 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src-z80/player/pcm.z80 b/src-z80/player/pcm.z80 index 2a484d4..99feb6d 100644 --- a/src-z80/player/pcm.z80 +++ b/src-z80/player/pcm.z80 @@ -1,6 +1,11 @@ ;**************************************************************************** -; PlayPCM* +; PlayPCM* [event $0C] ; Plays a PCM sample +;---------------------------------------------------------------------------- +; input c .... current bank +; input hl ... current address +;---------------------------------------------------------------------------- +; breaks: af, b ;**************************************************************************** PlayPCMSFX: @@ -18,6 +23,10 @@ PlayPCMBGM: jp ProcessBGMRun ; End of subroutine PlayPCM: + ld a, (RAM_GlobalVol+$0C) ; Are we allowed to play PCM? + or a + ret z + call GetParam ; Get sample ID ld a, b |
