wok diff linld/stuff/src/CRTL.ASM @ rev 22676

updated drbd-utils again (8.9.1 -> 9.11.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 18 11:42:51 2020 +0100 (2020-01-18)
parents 08c52f1e528e
children 526e82fe0471
line diff
     1.1 --- a/linld/stuff/src/CRTL.ASM	Fri Jan 17 10:47:57 2020 +0100
     1.2 +++ b/linld/stuff/src/CRTL.ASM	Sat Jan 18 11:42:51 2020 +0100
     1.3 @@ -17,7 +17,7 @@
     1.4  
     1.5          segment _DATA byte public use16 'DATA'
     1.6  
     1.7 -msg_hang	db      "High mem corrupted: halt",0
     1.8 +msg_hang	db      "High mem corrupted",0
     1.9  vcpi_alloc_err	db	"VCPI"
    1.10  		global	overflow:byte
    1.11  overflow	db	"/"
    1.12 @@ -289,11 +289,19 @@
    1.13          global  @rewind$qi:near			; fd=ax
    1.14          proc    @rewind$qi near
    1.15  
    1.16 +		ifdef EXTRA
    1.17 +		xchg	ax,bx			; catch ISO image case
    1.18 +		mov	cx,-512			; curpos = 512
    1.19 +		stc				; see LOAD.CPP
    1.20 +		mov	bl,2
    1.21 +		jmp	lseekword
    1.22 +		endif
    1.23  rewind:						; rewind(ax)
    1.24  		mov	bl,0
    1.25  lseek0:						; lseek0(ax,bl=dir)
    1.26 -		xor	dx,dx
    1.27 -		xor	cx,cx
    1.28 +		xor	cx,cx			; clear C
    1.29 +lseekword:
    1.30 +		sbb	dx,dx
    1.31  lseekset:
    1.32  		xchg	ax,bx
    1.33  lseek: