File:  [RetroPC.NET] / np2 / romimage / BEEP.X86
Revision 1.1: download - view: text, annotated - select for diffs
Wed Dec 10 21:48:08 2003 JST (21 years, 10 months ago) by yui
Branches: MAIN
CVS tags: VER_0_73, HEAD
add ITF Images (T.Yui)

; BEEP TEST

beeptestwait:	mov		al, 4
beeptestwaitlp1:mov		cx, 9000h
				loop	$						; mine
				dec		al
				jne		beeptestwaitlp1
				ret

BEEP_TEST:		mov		bx, 3e6h				; 2.0MHz
				in		al, 42h
				test	al, 20h
				jne		short beephzok
				mov		bx, 4cdh				; 2.5MHz
beephzok:		mov		al, 76h
				out		77h, al					; BEEP setup mode#0
				call	beep_Hzset
				mov		al, 6
				out		37h, al					; BEEP ON
				call	beeptestwait
				shl		bx, 1
				call	beep_Hzset
				call	beeptestwait
				mov		al, 7
				out		37h, al					; BEEP OFF
				shr		bx, 1
beep_Hzset:		mov		al, bl
				out		73h, al
				mov		al, bh
				out		73h, al
				ret

RetroPC.NET-CVS <cvs@retropc.net>