wok diff linld/stuff/src/MEMTOP.ASM @ rev 19571
linld: large image support with VCPI
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 22 21:06:17 2016 +0100 (2016-12-22) |
parents | bb42796dcd3b |
children | 38eb1fe036b4 |
line diff
1.1 --- a/linld/stuff/src/MEMTOP.ASM Tue Nov 22 21:19:01 2016 +0100 1.2 +++ b/linld/stuff/src/MEMTOP.ASM Thu Dec 22 21:06:17 2016 +0100 1.3 @@ -38,7 +38,7 @@ 1.4 ;*************************************************************** 1.5 ; proc _memtop_e801 near 1.6 1.7 - push cx bx 1.8 + ;push cx bx 1.9 xor cx,cx ;fix to work around buggy 1.10 xor dx,dx ; BIOSes which dont clear/set 1.11 stc ; carry on pass/error of 1.12 @@ -54,7 +54,7 @@ 1.13 @@use_cxdx: xchg ax,cx 1.14 @@end_kludge: ;now: dx=64k units above 16m 1.15 ; ax=1k units above 1m below 16m (max 3c00h) 1.16 - pop bx cx 1.17 + ;pop bx cx 1.18 test dx,dx 1.19 jz tokb ;dx=0 here, ax=kbs above 1m 1.20 xor ax,ax ;ignore info on low 16M (assume full) 1.21 @@ -169,17 +169,22 @@ 1.22 1.23 ifndef xmm_hook 1.24 mov ax,4300h 1.25 + ifdef NO386 1.26 + cwd 1.27 + endif 1.28 int 2fh 1.29 - cmp al,80h 1.30 + cmp al,80h ; 80h = XMS driver installed 1.31 je @@skip 1.32 endif 1.33 + ifndef NO386 1.34 push 0 1.35 pop es 1.36 mov bx,15*4 1.37 - ifndef NO386 1.38 mov eax,[bx] 1.39 mov [saved15],eax 1.40 else 1.41 + mov es,dx 1.42 + mov bx,15*4 1.43 mov ax,[bx] 1.44 mov [word saved15],ax 1.45 mov ax,[bx+2]