set_psg_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/psg/msx/set_psg_callee.asm
;
;	MSX specific routines
;	by Stefano Bodrato, December 2007
;
;	int msx_sound(int reg, int val);
;
;	Play a sound by PSG
;
;
;	$Id: set_psg_callee.asm,v 1.4 2015/01/19 01:33:04 pauloscustodio Exp $
;

	PUBLIC	set_psg_callee
	EXTERN     msxbios

	PUBLIC ASMDISP_SET_PSG_CALLEE

	
IF FORmsx
        INCLUDE "msxbios.def"
ELSE
        INCLUDE "svibios.def"
ENDIF

set_psg_callee:

   pop hl
   pop de
   ex (sp),hl
	
.asmentry

	ld	a,l
	
	ld	ix, WRTPSG
	jp	msxbios

DEFC ASMDISP_SET_PSG_CALLEE = # asmentry - set_psg_callee
