Correct shr/jcxz sequence.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@595 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2003-06-15 18:15:06 +00:00
parent fc294ddce9
commit 542b0c1b89

View File

@ -118,8 +118,8 @@ MEMCPY:
domemcpy:
; And do the built-in byte copy, but do a 16-bit transfer
; whenever possible.
shr cx,1
jcxz memcpy_return
shr cx,1
rep movsw
jnc memcpy_return
movsb
@ -183,8 +183,8 @@ FMEMSET:
domemset:
mov ah, al
shr cx,1
jcxz pascal_return
shr cx,1
rep stosw
jnc pascal_return
stosb