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

Add obexd & obexftp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 02 16:56:55 2017 +0200 (2017-04-02)
parents 96b6a30a3f9a
children 429d89fd5e0f
line diff
     1.1 --- a/linld/stuff/src/MEMTOP.ASM	Fri Mar 31 16:58:50 2017 +0200
     1.2 +++ b/linld/stuff/src/MEMTOP.ASM	Sun Apr 02 16:56:55 2017 +0200
     1.3 @@ -54,7 +54,8 @@
     1.4                  test    dx,dx           ;  memory in AX/BX rather than
     1.5                  jnz     @@use_cxdx      ;  CX/DX.  The spec I have read
     1.6  @@use_axbx:     mov     dx,bx           ;  seems to indicate AX/BX
     1.7 -                jmp     @@end_kludge    ;  are more reasonable anyway...
     1.8 +                ;jmp     @@end_kludge    ;  are more reasonable anyway...
     1.9 +		db	0a8h	; test al,im opcode
    1.10  @@use_cxdx:     xchg    ax,cx
    1.11  @@end_kludge:                   ;now: dx=64k units above 16m
    1.12                                  ;     ax=1k units above 1m below 16m (max 3c00h)
    1.13 @@ -84,7 +85,17 @@
    1.14  @@ok:
    1.15  ;                xor     dx,dx
    1.16                  test    ax,ax           ;happens on big mem systems
    1.17 -                jz      @@fail
    1.18 +                jnz      tokb
    1.19 +
    1.20 +;***************************************************************
    1.21 +;u32 memtop_cmos()
    1.22 +;***************************************************************
    1.23 +
    1.24 +;memtop_cmos:
    1.25 +                pushf
    1.26 +                cli
    1.27 +                call	rdcmos17
    1.28 +                popf
    1.29  tokb:
    1.30                  xor     dx,dx
    1.31                  add     ah,4h           ;account for 1024 low kb
    1.32 @@ -105,24 +116,13 @@
    1.33                  ret
    1.34  ;        endp    _memtop_88
    1.35  
    1.36 -@@fail:
    1.37 -
    1.38  ;        proc    _memtopz near
    1.39  
    1.40  ;                call	_memtop_e801
    1.41  ;		jnz	@@ok
    1.42  ;                call	_memtop_88
    1.43  ;		jnz	@@ok
    1.44 -
    1.45 -;***************************************************************
    1.46 -;u32 memtop_cmos()
    1.47 -;***************************************************************
    1.48 -
    1.49 -                pushf
    1.50 -                cli
    1.51 -                call	rdcmos17
    1.52 -                popf
    1.53 -		jmp	tokb
    1.54 +;		jmp	memtop_cmos
    1.55  
    1.56  rdcmos17:       mov     al,18h		; read bytes 17-18 from CMOS
    1.57                  call    @@rdcmos