瀏覽代碼

some fixes

ceriel 37 年之前
父節點
當前提交
dcf7bd7820
共有 3 個文件被更改,包括 17 次插入1 次删除
  1. 1 0
      mach/i86/libem/LIST
  2. 15 0
      mach/i86/libem/blm.s
  3. 1 1
      mach/i86/libem/set.s

+ 1 - 0
mach/i86/libem/LIST

@@ -54,3 +54,4 @@ ret8.s
 lfr6.s
 lfr8.s
 retarea.s
+blm.s

+ 15 - 0
mach/i86/libem/blm.s

@@ -0,0 +1,15 @@
+.sect .text
+.define .blm
+
+	! cx: count in words
+.blm:
+	mov	bx,sp
+	mov	ax,si
+	mov	dx,di
+	mov	di,2(bx)
+	mov	si,4(bx)
+	rep	movs
+	mov	si,ax
+	mov	di,dx
+	ret	4
+

+ 1 - 1
mach/i86/libem/set.s

@@ -15,7 +15,7 @@
 	xor	di,di
 	sar	cx,1
 1:
-	mov     dx,4(bx)(di)
+	mov     4(bx)(di),dx
 	add	di,2
 	loop	1b
 !endif