.include  ..\GPL951_Body.inc

.define Multi_InstrumentLib_Suuprt	0	//1: support multi-instrument lib, 0: not support


.if	 Multi_InstrumentLib_Suuprt
	.include  .\James\instlibs.asm
.else
	//-----------
	.public Instrument_Library_Number
	.public _Instrument_Library_Number
	.public T_Lib_DrumAddr
	.public _T_Lib_DrumAddr
	.public T_Lib_InstrumentStartSection
	.public T_Lib_InstrumentPitchTable
	.public T_Lib_InstrumentSectionAddr
	.public _T_Lib_InstrumentStartSection
	.public _T_Lib_InstrumentPitchTable
	.public _T_Lib_InstrumentSectionAddr

	.CODE
		 Instrument_Library_Number: .dw 1
		_Instrument_Library_Number: .dw 1
	
		 T_Lib_DrumAddr:
		_T_Lib_DrumAddr:
	
		 T_Lib_InstrumentStartSection:
		_T_Lib_InstrumentStartSection:
		 T_Lib_InstrumentPitchTable:
		_T_Lib_InstrumentPitchTable:
		 T_Lib_InstrumentSectionAddr:
		_T_Lib_InstrumentSectionAddr:
	//----------------
.endif	

//.public T_SFXDrumAddr
.code
//T_SFXDrumAddr:
//****************************************************************
// Function    : F_USER_SPU_MIDI_Event
// Description : call back by library when music event data is got
// Destory     : 
// Parameter   : R1 : event type(0 ~ 127)
// Return      : None
// Note        : None
//****************************************************************
.public _USER_SPU_MIDI_Event
.public F_USER_SPU_MIDI_Event
_USER_SPU_MIDI_Event:	
F_USER_SPU_MIDI_Event:	.PROC
		push r2 to [sp]
		
//		R2 = [P_IOB_Buffer];
//		R2 ^= 0xFFFF;
//		[P_IOB_Data] = R2;

		pop r2 from [sp]	
		retf;
		.ENDP	
////////////////////			
// End of GetMidiEvent		
////////////////////		