wok diff linld/stuff/src/MEMCPY32.ASM @ rev 20256

Add tlp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 13 23:01:20 2018 +0100 (2018-03-13)
parents df6498976257
children 46b511e941a7
line diff
     1.1 --- a/linld/stuff/src/MEMCPY32.ASM	Sat Apr 08 18:04:44 2017 +0200
     1.2 +++ b/linld/stuff/src/MEMCPY32.ASM	Tue Mar 13 23:01:20 2018 +0100
     1.3 @@ -120,8 +120,7 @@
     1.4  
     1.5  ;****** Init ***************************************************
     1.6  
     1.7 -			ifndef	FIXME_NO386
     1.8 -                p386
     1.9 +			ifndef	NO386
    1.10  
    1.11  		enter	TEMP_SIZE,0
    1.12  		;cld
    1.13 @@ -171,15 +170,15 @@
    1.14  		xor	bx,bx
    1.15  		xor	dx,dx
    1.16  		xor	si,si
    1.17 -		mov	ax,[bp+8]		; srcseg
    1.18 +		mov	ax,[srcseg]
    1.19  		mov	cl,4
    1.20  		extrn	N_LXLSH@:near
    1.21  		call	near N_LXLSH@
    1.22 -		add	[bp+10],ax		; srcofs lo
    1.23 -		adc	[bp+10+2],dx		; srcofs hi
    1.24 +		add	[word srcofs],ax
    1.25 +		adc	[word srcofs+2],dx
    1.26  @@2flat:
    1.27 -		mov	ax,[bp+si+10]		; srcofs, dstofs lo
    1.28 -		mov	dx,[bp+si+10+2]		; srcofs, dstofs hi
    1.29 +		mov	ax,[word si+srcofs]	; srcofs, dstofs lo
    1.30 +		mov	dx,[word si+srcofs+2]	; srcofs, dstofs hi
    1.31  		extrn	N_LXURSH@4:near
    1.32  		call	near N_LXURSH@4
    1.33  		or	bx,dx			; >=1mb flag
    1.34 @@ -188,8 +187,8 @@
    1.35  		jnz	@@2flat
    1.36  		pop	dx			; dstseg
    1.37  		pop	ax			; srcseg
    1.38 -		test	bx,bx			; <1mb ? (clear C)
    1.39 -                jnz     @@pmcopy
    1.40 +		dec	bx			; <1mb ?
    1.41 +                jns     @@pmcopy
    1.42  		push	di
    1.43  @@movlp:
    1.44  		mov	ds,ax