wok diff linld/stuff/src/MEMTOP.ASM @ rev 19634
linld: some fixes for strtoul
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 16 10:15:15 2017 +0100 (2017-01-16) |
parents | e428345df29a |
children | 76087975885f |
line diff
1.1 --- a/linld/stuff/src/MEMTOP.ASM Thu Dec 22 21:06:17 2016 +0100 1.2 +++ b/linld/stuff/src/MEMTOP.ASM Mon Jan 16 10:15:15 2017 +0100 1.3 @@ -78,10 +78,11 @@ 1.4 jnc @@ok ; error: cf=1 or ax=0 1.5 xor ax,ax ; 1.6 @@ok: 1.7 - xor dx,dx 1.8 +; xor dx,dx 1.9 test ax,ax ;happens on big mem systems 1.10 jz @@fail 1.11 tokb: 1.12 + xor dx,dx 1.13 add ah,4h ;account for 1024 low kb 1.14 adc dx,dx ; (optimized to death) 1.15 ifndef NO386 1.16 @@ -117,7 +118,6 @@ 1.17 cli 1.18 call rdcmos17 1.19 popf 1.20 - xor dx,dx 1.21 jmp tokb 1.22 1.23 rdcmos17: mov al,18h ; read bytes 17-18 from CMOS