wok rev 19874

linld: fix progname (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 31 10:37:54 2017 +0200 (2017-03-31)
parents c9c88c0a2ae5
children 8fab00f1f6be
files linld/stuff/src/CRTL.ASM linld/stuff/src/_BEG.ASM
line diff
     1.1 --- a/linld/stuff/src/CRTL.ASM	Fri Mar 31 09:17:01 2017 +0200
     1.2 +++ b/linld/stuff/src/CRTL.ASM	Fri Mar 31 10:37:54 2017 +0200
     1.3 @@ -1344,12 +1344,11 @@
     1.4  		mov	ah,30h
     1.5  		int	21h
     1.6  		cmp	al,3
     1.7 -		xchg	ax,di
     1.8 +		mov	ax,di
     1.9  		jb	@@skip
    1.10  		;mov	es,[cs:2Ch]
    1.11 -		mov	es,[2Ch]
    1.12 +		mov	es,[di+2Ch]
    1.13  		mov	cx,-1
    1.14 -		mov	ax,di
    1.15  @@loop:
    1.16  		repne
    1.17  		  scasb
    1.18 @@ -1361,7 +1360,7 @@
    1.19  		repne
    1.20  		  scasb
    1.21  		mov	cx,di
    1.22 -		sub	cx,si
    1.23 +		sub	cx,si			; progname len
    1.24  		call	malloc_or_die		; keep cx
    1.25  		mov	di,ax
    1.26  		push	ds
     2.1 --- a/linld/stuff/src/_BEG.ASM	Fri Mar 31 09:17:01 2017 +0200
     2.2 +++ b/linld/stuff/src/_BEG.ASM	Fri Mar 31 10:37:54 2017 +0200
     2.3 @@ -56,9 +56,9 @@
     2.4  		add	dh,bh		; NS=386+, NC=286
     2.5  		 ifndef	NO386
     2.6  		mov	bx,offset msg_badcpu
     2.7 -                js	no_vcpi   	;it is a 386+
     2.8 +                js	no_vcpi   	;it is not a 386+
     2.9  		 else
    2.10 -                js	endcpu   	;it is a 386+
    2.11 +                js	endcpu   	;it is not a 386+
    2.12  		 endif
    2.13  		endif
    2.14                  p386