wok diff linld/stuff/src/MEMTOP.ASM @ rev 21801

linld/iso2exe: remove non slitaz dos boot
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 18:47:30 2019 +0200 (2019-08-10)
parents 2373992ff751
children 6e3d30b3031f
line diff
     1.1 --- a/linld/stuff/src/MEMTOP.ASM	Mon Jun 24 16:31:09 2019 +0200
     1.2 +++ b/linld/stuff/src/MEMTOP.ASM	Sat Aug 10 18:47:30 2019 +0200
     1.3 @@ -88,14 +88,15 @@
     1.4                  setc    dl              ;  (optimized to death)
     1.5  		shld    dx,ax,cl
     1.6  		shl     ax,cl		;  (kbytes -> bytes)
     1.7 +		ret
     1.8  		else
     1.9                  xor     dx,dx
    1.10                  add     ah,4h           ;account for 1024 low kb
    1.11                  adc     dx,dx           ;  (optimized to death)
    1.12 -		db	0A9h		; test ax,04B1h
    1.13 -        global  N_LXLSH@4:near
    1.14 -N_LXLSH@4:
    1.15 -		mov	cl,4
    1.16 +		db	0A9h		; test ax,0C28Ch
    1.17 +        global  N_LXLSH@ES:near
    1.18 +N_LXLSH@ES:
    1.19 +		mov	dx,es
    1.20          global  N_LXLSH@:near
    1.21  N_LXLSH@:
    1.22  		mov	ch,0
    1.23 @@ -103,30 +104,16 @@
    1.24  		shl	ax,1
    1.25  		rcl	dx,1
    1.26  		loop	@@lp
    1.27 +		ret
    1.28 +        global  N_LXLSH@4:near
    1.29 +N_LXLSH@4:
    1.30 +		xor	dx,dx
    1.31 +		mov	cl,4
    1.32 +		jmp	N_LXLSH@
    1.33  		endif
    1.34 -		ret
    1.35  
    1.36  ;        endp    _memtop_88
    1.37  
    1.38 -		ifdef	NO386
    1.39 -        global  N_LXURSH@:near
    1.40 -        global  N_LXURSH@4:near
    1.41 -;        proc    N_LXURSH@4 near
    1.42 -N_LXURSH@4:
    1.43 -		mov	cl,4
    1.44 -N_LXURSH@:
    1.45 -		mov	ch,0
    1.46 -@@loop:
    1.47 -		shr	dx,1
    1.48 -		rcr	ax,1
    1.49 -		loop	@@loop
    1.50 -		ret
    1.51 -
    1.52 -;        endp    N_LXURSH@4
    1.53 -
    1.54 -		endif
    1.55 -
    1.56 -
    1.57  ;        proc    _memtopz near
    1.58  
    1.59  ;                call	_memtop_e801