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

Up ncdu (1.13)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 16 16:37:20 2018 +0200 (2018-10-16)
parents bcdfc23ee041
children 049ced0bd387
line diff
     1.1 --- a/linld/stuff/src/MEMTOP.ASM	Sat Sep 29 15:27:00 2018 +0200
     1.2 +++ b/linld/stuff/src/MEMTOP.ASM	Tue Oct 16 16:37:20 2018 +0200
     1.3 @@ -40,15 +40,15 @@
     1.4                  mov     ax,0E801h
     1.5                  int     15h
     1.6                  jc      @@err
     1.7 -		xchg	ax,cx
     1.8 -                push    ax              ;kludge to handle BIOSes
     1.9 -                or      ax,dx           ;  which report their extended
    1.10 -		pop	ax		;  memory in AX/BX rather than
    1.11 -                jnz     @@use_cxdx      ;  CX/DX.  The spec I have read
    1.12 +
    1.13 +		xchg	ax,cx		;kludge to handle BIOSes
    1.14 +		jcxz	@@use_cxdx	;  which report their extended
    1.15 +					;  memory in AX/BX rather than
    1.16 +					;  CX/DX.  The spec I have read
    1.17  @@use_axbx:     mov     dx,bx           ;  seems to indicate AX/BX
    1.18                  xchg	ax,cx		;  are more reasonable anyway...
    1.19 -@@use_cxdx:                     ;now: dx=64k units above 16m
    1.20 -                                ;     ax=1k units above 1m below 16m (max 3c00h)
    1.21 +@@use_cxdx:				;now: dx=64k units above 16m
    1.22 +					;     ax=1k units above 1m below 16m (max 3c00h)
    1.23                  test    dx,dx
    1.24                  jz      tokb            ;dx=0 here, ax=kbs above 1m
    1.25                  xor     ax,ax           ;ignore info on low 16M (assume full)