Browse Source

bug fixes

ceriel 37 years ago
parent
commit
bbd4e57723
2 changed files with 5 additions and 1 deletions
  1. 4 1
      mach/i86/libem/csb2.s
  2. 1 0
      mach/i86/libem/mli4.s

+ 4 - 1
mach/i86/libem/csb2.s

@@ -10,7 +10,7 @@
 1:
 	add	bx,4
 	dec     cx
-	jl      2f
+	jl      4f
 	cmp     ax,(bx)
 	jne     1b
 	mov	bx,2(bx)
@@ -24,3 +24,6 @@
 	jmp     .fat
 3:
 	jmp     bx
+4:
+	mov	bx,dx
+	jmp	2b

+ 1 - 0
mach/i86/libem/mli4.s

@@ -20,6 +20,7 @@ yh=4
 	pop	dx
 	add     dx,ax           ! xh*yl+xl*yh
 	mov     ax,cx
+	mov	cx,dx
 	mul     yl(bx)           ! xl*yl
 	add     dx,cx
 	ret	4