some fixes
This commit is contained in:
parent
7698c135be
commit
85023f4c14
|
@ -54,3 +54,4 @@ ret8.s
|
|||
lfr6.s
|
||||
lfr8.s
|
||||
retarea.s
|
||||
blm.s
|
||||
|
|
15
mach/i86/libem/blm.s
Normal file
15
mach/i86/libem/blm.s
Normal file
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue