Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /elks/arch/i86/drivers/char/bell.c [bf1dd0] .. [bc62c7] Maximize Restore

  Switch to side-by-side view

--- a/elks/arch/i86/drivers/char/bell.c
+++ b/elks/arch/i86/drivers/char/bell.c
@@ -13,11 +13,10 @@
  */
 static void sound(unsigned freq)
 {
+    int es;
 #ifndef S_SPLINT_S
 #asm
-	push	bp
-	mov	bp,sp
-	mov	bx, [bp+4]		! frequency
+	mov	bx, [bp+.sound.freq]	! frequency
 	mov	ax, #$34dd
 	mov	dx, #$0012
 	cmp	dx, bx
@@ -29,17 +28,16 @@
 	jne	j1
 	or	al, #3
 	out	$61, al
+
+j1:
 	mov	al, #$b6
 	out	$43, al
-
-j1:
 	mov	al, bl
 	out	$42, al
 	mov	al, bh
 	out	$42, al
 
 none:
-	pop	bp
 
 #endasm
 #endif