aboutsummaryrefslogtreecommitdiff
path: root/src/mplayer/akm/akm_ubox.asm
blob: cbbf8af745ebeb86598a3ecb794d75884c9aa3c4 (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
25
26
27
; 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: L = channel
; OUT: L = 0 if is not on
PLY_AKM_IsSoundEffectOnDisarkGenerateExternalLabel:
PLY_AKM_IsSoundEffectOn:
	ld a,l
	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)
	ld l,a
	ret