aboutsummaryrefslogtreecommitdiff
path: root/src/mplayer/akm/akm_ubox.asm
blob: 39aef74b3f2a8ce205d12dc2c9410fd6281b426e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; these are common
PLY_AKM_HARDWARE_MSX = 1
PLY_AKM_MANAGE_SOUND_EFFECTS = 1
PLY_AKM_Rom = 1
PLY_AKM_ROM_Buffer = #c000

include "PlayerAkm.asm"

; IN: a = channel
; OUT: L = 0 if is not on
PLY_AKM_IsSoundEffectOnDisarkGenerateExternalLabel:
PLY_AKM_IsSoundEffectOn:
	add a,a
	add a,a
	add a,a
	ld c,a
	ld b,0
        ld hl,PLY_AKM_Channel1_SoundEffectData
	add hl,bc
	ld a,(hl)
	inc hl
	or (hl)
	ret