Mail Archives: djgpp/1994/03/17/03:00:35
Hello!
This are two almost identical patches to "djgpp\libsrc\c\read.s"
and "...\write.s".
Applying these patches will 1) allow new-method transfering when the
size is exactly 4096 bytes, and 2) also work if somebody did a "std"
before the call.
Please indicate whether you will install it in the standard
distribution.
Morten Welinder
terra AT diku DOT dk
*** read.sec Mon Oct 4 21:22:52 1993
--- read.s Wed Mar 16 20:01:02 1994
***************
*** 22,28 ****
movl 20(%esp),%edx
movl 24(%esp),%ecx
cmpl $4096,%ecx
! jae old_way
movl __go32_info_block+12,%esi
cmpl $0,%esi
--- 22,28 ----
movl 20(%esp),%edx
movl 24(%esp),%ecx
cmpl $4096,%ecx
! ja old_way
movl __go32_info_block+12,%esi
cmpl $0,%esi
***************
*** 48,53 ****
--- 48,54 ----
movl %eax,%ecx
pushl %ecx
shrl $2,%ecx
+ cld
rep
movsl
popl %ecx
*** write.sec Mon Oct 4 21:42:48 1993
--- write.s Wed Mar 16 20:01:18 1994
***************
*** 22,28 ****
movl 20(%esp),%edx
movl 24(%esp),%ecx
cmpl $4096,%ecx
! jae old_way
movl __go32_info_block+12,%edi
cmpl $0,%edi
--- 22,28 ----
movl 20(%esp),%edx
movl 24(%esp),%ecx
cmpl $4096,%ecx
! ja old_way
movl __go32_info_block+12,%edi
cmpl $0,%edi
***************
*** 38,43 ****
--- 38,44 ----
movl %edx,%esi
pushl %ecx
shrl $2,%ecx
+ cld
rep
movsl
popl %ecx
- Raw text -